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