blob: 772368c41c908f1bccf25a7ff337b4b3b93fc7ce (
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: 'session',
initialState: {
authenticated: false,
},
reducers: {
authenticated(state, action) {
state.authenticated = action.payload;
},
}
});
export { actions as sessionActions };
export { reducer as sessionReducer };
|