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

const calendarCreate = createSlice({
   name: 'calendarCreate',
   initialState: {
      title: "",
      desc: "",
      dateStart: "",
      timeStart: "",
      timeEnd: "",
      repeatEventType: "",
      repeatValue: 1,
      linkMeet: "",
      member: [],
   },
   reducers: {
      setFormCreateCalendar: (state, action) => {
         return action.payload;
      },
   },
});

export const { setFormCreateCalendar } = calendarCreate.actions;
export default calendarCreate.reducer;