From 8c205249941bbd503ee452b0dd857f173bf74363 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sat, 23 Aug 2025 17:18:12 +0300 Subject: fix: Hide bookmark global actions when there's no bookmark grid shown --- apps/web/lib/store/useInBookmarkGridStore.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 apps/web/lib/store/useInBookmarkGridStore.ts (limited to 'apps/web/lib/store/useInBookmarkGridStore.ts') 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((set) => ({ + inBookmarkGrid: false, + setInBookmarkGrid: (inBookmarkGrid) => set({ inBookmarkGrid }), +})); -- cgit v1.2.3-70-g09d2