Skip to content

A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search

435 B
Raw Blame
import { create } from "zustand";

interface InBookmarkGridState {
  inBookmarkGrid: boolean;
  setInBookmarkGrid: (inBookmarkGrid: boolean) => void;
}

export const useInBookmarkGridStore = create<InBookmarkGridState>(
  (set, get) => ({
    inBookmarkGrid: false,
    setInBookmarkGrid: (inBookmarkGrid) => {
      if (get().inBookmarkGrid === inBookmarkGrid) {
        return;
      }
      set({ inBookmarkGrid });
    },
  }),
);