Files
lume/packages/utils/src/state.ts
2024-01-12 20:32:45 +07:00

18 lines
333 B
TypeScript

import { atom } from "jotai";
// Editor
export const editorAtom = atom(false);
export const editorValueAtom = atom([
{
type: "paragraph",
children: [{ text: "" }],
},
]);
// Onboarding
export const onboardingAtom = atom(false);
// Activity
export const activityAtom = atom(false);
export const activityUnreadAtom = atom(0);