diff options
| author | MohamedBassem <me@mbassem.com> | 2025-08-23 17:18:12 +0300 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2025-08-23 17:18:12 +0300 |
| commit | 8c205249941bbd503ee452b0dd857f173bf74363 (patch) | |
| tree | 300c994c87f795c0bae44858e65378b966d19cf6 /apps/web/lib/store | |
| parent | a4b2fc7ca89c7916a32a3e279ab3880ebaa7a734 (diff) | |
| download | karakeep-8c205249941bbd503ee452b0dd857f173bf74363.tar.zst | |
fix: Hide bookmark global actions when there's no bookmark grid shown
Diffstat (limited to 'apps/web/lib/store')
| -rw-r--r-- | apps/web/lib/store/useInBookmarkGridStore.ts | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/web/lib/store/useInBookmarkGridStore.ts b/apps/web/lib/store/useInBookmarkGridStore.ts new file mode 100644 index 00000000..d534dc4c --- /dev/null +++ b/apps/web/lib/store/useInBookmarkGridStore.ts @@ -0,0 +1,11 @@ +import { create } from "zustand"; + +interface InBookmarkGridState { + inBookmarkGrid: boolean; + setInBookmarkGrid: (inBookmarkGrid: boolean) => void; +} + +export const useInBookmarkGridStore = create<InBookmarkGridState>((set) => ({ + inBookmarkGrid: false, + setInBookmarkGrid: (inBookmarkGrid) => set({ inBookmarkGrid }), +})); |
