AcadeDoc/client/src/features/editor/atoms/editorAtom.ts
2023-11-22 20:42:34 +00:00

9 lines
289 B
TypeScript

import { atom } from 'jotai';
import { Editor } from '@tiptap/core';
export const editorAtom = atom<Editor | null>(null);
export const titleEditorAtom = atom<Editor | null>(null);
export type EditorAtomType = typeof editorAtom;
export type TitleEditorAtomType = typeof titleEditorAtom;