blob: 07834928b0971d0c16fc009a2d9501ba27c35443 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import { createSlice } from '@reduxjs/toolkit';
const { reducer, actions } = createSlice({
name: 'ui',
initialState: {
collapsed: true
},
reducers: {
setCollapsed(state, action) {
state.collapsed = action.payload;
},
},
});
export { actions as uiActions };
export { reducer as uiReducer };
|