mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-09-01 08:53:27 +00:00
14 lines
369 B
TypeScript
14 lines
369 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 })),
|
|
}));
|