9 lines
289 B
TypeScript
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;
|