feat: add editor
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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"
|
||||
|
||||
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