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

const taskUpdate = createSlice({
   name: 'taskUpdate',
   initialState: {
      data: false,
      progress: false,
      task: false,
      file: false,
      member: false,
      link: false,
      report: false,
   },
   reducers: {
      setUpdateTask: (state, action) => {
         return action.payload;
      },
   },
});

export const { setUpdateTask } = taskUpdate.actions;
export default taskUpdate.reducer;