Files
edr-platform/apps/edr-freight-web/portal/src/store/index.ts
Michael Abebe 1c5ee19388 chore: fmt
2026-05-12 16:50:18 +03:00

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 })),
}));