feat: add editor

This commit is contained in:
2024-01-04 08:52:45 +07:00
parent ba13ac7535
commit f4cbcee8b4
24 changed files with 713 additions and 37 deletions

View File

@@ -7,3 +7,4 @@ export * from "./src/hooks/useNetworkStatus";
export * from "./src/hooks/useOpenGraph";
export * from "./src/cn";
export * from "./src/image";
export * from "./src/state";

View File

@@ -13,6 +13,7 @@
"@tauri-apps/plugin-notification": "2.0.0-alpha.5",
"clsx": "^2.1.0",
"dayjs": "^1.11.10",
"jotai": "^2.6.1",
"nostr-tools": "1.17.0",
"react": "^18.2.0",
"tailwind-merge": "^1.14.0"

View File

@@ -0,0 +1,9 @@
import { atom } from "jotai";
export const editorAtom = atom(false);
export const editorValueAtom = atom([
{
type: "paragraph",
children: [{ text: "" }],
},
]);