feat: add editor
This commit is contained in:
9
packages/utils/src/state.ts
Normal file
9
packages/utils/src/state.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import { atom } from "jotai";
|
||||
|
||||
export const editorAtom = atom(false);
|
||||
export const editorValueAtom = atom([
|
||||
{
|
||||
type: "paragraph",
|
||||
children: [{ text: "" }],
|
||||
},
|
||||
]);
|
||||
Reference in New Issue
Block a user