12 lines
266 B
TypeScript
12 lines
266 B
TypeScript
import { create } from "zustand";
|
|
|
|
interface SidebarStore {
|
|
isMinimized: boolean;
|
|
toggle: () => void;
|
|
}
|
|
|
|
export const useSidebar = create<SidebarStore>((set) => ({
|
|
isMinimized: false,
|
|
toggle: () => set((state) => ({ isMinimized: !state.isMinimized })),
|
|
}));
|