mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 12:41:04 +00:00
13 lines
365 B
TypeScript
13 lines
365 B
TypeScript
import { create } from 'zustand';
|
|
|
|
interface AppState {
|
|
// TODO: integrate @edr/auth — currentUser will be sourced from the auth package
|
|
isSidebarOpen: boolean;
|
|
toggleSidebar: () => void;
|
|
}
|
|
|
|
export const useAppStore = create<AppState>((set) => ({
|
|
isSidebarOpen: true,
|
|
toggleSidebar: () => set((state) => ({ isSidebarOpen: !state.isSidebarOpen })),
|
|
}));
|