add v2 sidebar

This commit is contained in:
Alex Holliday committed 2025-10-01 13:55:32 -07:00
1 parent fc9018e314
commit 3ae2f857d4
10 files changed
+279 -6

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import { createSlice } from "@reduxjs/toolkit";
const initialState = {
isAuthenticated: false,
};
const v2AuthSlice = createSlice({
name: "v2Auth",
initialState,
reducers: {
setIsAuthenticated: (state, action) => {
const { authenticated } = action.payload;
state.isAuthenticated = authenticated;
},
},
});
export default v2AuthSlice.reducer;
export const { setIsAuthenticated } = v2AuthSlice.actions;