import { createSlice } from "@reduxjs/toolkit"; | |
import type { AuthState } from "../../store/types"; | |
const initialState: AuthState = { | |
token: '', | |
loading: false, | |
isAuth: false, | |
} | |
const authSlice = createSlice({ | |
name: 'auth', | |
initialState, | |
reducers: {}, | |
}); | |
export default authSlice.reducer; |