blob: 924288e6038a811a91f607d3c5df7f2e388b9b77 (
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: 'calendars',
initialState: {
items: {},
},
reducers: {
update(state, action) {
action.payload.forEach((item) => state.items[item.id] = item);
},
},
});
export { actions as calendarsActions };
export { reducer as calendarsReducer };
|