import { atom } from "jotai"; export const historyAtoms = atom(false); export const activeHistoryIdAtom = atom(""); export const activeHistoryPrevIdAtom = atom(""); export const highlightChangesAtom = atom(true); export type DiffCounts = { added: number; deleted: number; total: number }; export const diffCountsAtom = atom( null as DiffCounts | null, ); export type ComparePair = { newerId: string; olderId: string }; export const compareModeAtom = atom(false); export const compareSelectionAtom = atom([]); export const comparePairAtom = atom( null as ComparePair | null, );