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

const discussionUpdate = createSlice({
   name: 'discussionUpdate',
   initialState: {
      data: false,
      comment: false,
   },
   reducers: {
      setUpdateDiscussion: (state, action) => {
         return action.payload;
      },
   },
});

export const { setUpdateDiscussion } = discussionUpdate.actions;
export default discussionUpdate.reducer;