Files
react-template/src/store/auth-slice.ts
T

20 lines
322 B
TypeScript
Raw Normal View History

2025-03-26 19:06:46 +08:00
import { createSlice } from "@reduxjs/toolkit"
interface AuthState {
isAuthenticated: boolean
}
const initialState: AuthState = {
isAuthenticated: false
}
const authSlice = createSlice({
name: "auth",
initialState,
reducers: {
}
})
// export const { } = authSlice.actions
export default authSlice.reducer