mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-15 09:06:19 +08:00
20 lines
434 B
TypeScript
20 lines
434 B
TypeScript
import { atomWithSyncStorage } from '@affine/jotai';
|
|
|
|
export type Visibility = Record<string, boolean>;
|
|
|
|
const DEFAULT_VALUE = '0.0.0';
|
|
|
|
export const lastVersionAtom = atomWithSyncStorage(
|
|
'lastVersion',
|
|
DEFAULT_VALUE
|
|
);
|
|
export const guideHiddenAtom = atomWithSyncStorage<Visibility>(
|
|
'guideHidden',
|
|
{}
|
|
);
|
|
|
|
export const guideHiddenUntilNextUpdateAtom = atomWithSyncStorage<Visibility>(
|
|
'guideHiddenUntilNextUpdate',
|
|
{}
|
|
);
|