mirror of
https://github.com/ahmadk953/tasko.git
synced 2025-05-04 04:33:10 +00:00
Initial Commit
This commit is contained in:
commit
f3e2f01bd7
150 changed files with 13612 additions and 0 deletions
13
hooks/use-mobile-sidebar.ts
Normal file
13
hooks/use-mobile-sidebar.ts
Normal file
|
@ -0,0 +1,13 @@
|
|||
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 }),
|
||||
}));
|
Loading…
Add table
Add a link
Reference in a new issue