import { createSlice } from '@reduxjs/toolkit';

const divisionCreate = createSlice({
   name: 'divisionCreate',
   initialState: {
      data: {
         idGroup: "",
         name: "",
         desc: "",
      },
      member: [],
      admin: [],
   },
   reducers: {
      setFormCreateDivision: (state, action) => {
         return action.payload;
      },
   },
});

export const { setFormCreateDivision } = divisionCreate.actions;
export default divisionCreate.reducer;