mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-01-31 00:53:37 +00:00
14 lines
304 B
TypeScript
14 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 }),
|
||
|
}));
|