mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 17:03:38 +00:00
13 lines
304 B
TypeScript
13 lines
304 B
TypeScript
import { create } from 'zustand';
|
|
|
|
type MobileSidebarStore = {
|
|
isOpen: boolean;
|
|
onOpen: () => void;
|
|
onClose: () => void;
|
|
};
|
|
|
|
export const useMobileSidebar = create<MobileSidebarStore>((set) => ({
|
|
isOpen: false,
|
|
onOpen: () => set({ isOpen: true }),
|
|
onClose: () => set({ isOpen: false }),
|
|
}));
|