Files
docmost/apps/client/src/features/page-history/atoms/history-atoms.ts
T
Philipinho 4d322e9157 atom
2026-02-01 02:16:53 +00:00

10 lines
386 B
TypeScript

import { atom } from "jotai";
export const historyAtoms = atom<boolean>(false);
export const activeHistoryIdAtom = atom<string>("");
export const activeHistoryPrevIdAtom = atom<string>("");
export const highlightChangesAtom = atom<boolean>(true);
export type DiffCounts = { added: number; deleted: number; total: number };
export const diffCountsAtom = atom<DiffCounts | null>(null);