mirror of
https://github.com/docmost/docmost.git
synced 2026-08-31 02:46:27 +08:00
19 lines
676 B
TypeScript
19 lines
676 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 as DiffCounts | null,
|
|
);
|
|
|
|
export type ComparePair = { newerId: string; olderId: string };
|
|
export const compareModeAtom = atom<boolean>(false);
|
|
export const compareSelectionAtom = atom<string[]>([]);
|
|
export const comparePairAtom = atom<ComparePair | null>(
|
|
null as ComparePair | null,
|
|
);
|