mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
26 lines
580 B
TypeScript
26 lines
580 B
TypeScript
/** @jsx h */
|
|
import { h, render } from "https://esm.sh/preact@10.17.1";
|
|
import { Editor } from "./editor.tsx";
|
|
import { EventBus } from "../event-bus.ts";
|
|
import { NostrKind } from "../nostr.ts";
|
|
import { PublicKey } from "../nip19.ts";
|
|
|
|
const bus = new EventBus();
|
|
|
|
let vdom = (
|
|
<Editor
|
|
placeholder="Message @xxx"
|
|
maxHeight="50vh"
|
|
eventEmitter={bus}
|
|
kind={NostrKind.CONTACTS}
|
|
tags={[
|
|
["p", "1222"],
|
|
]}
|
|
model={{
|
|
files: [],
|
|
text: "",
|
|
}}
|
|
/>
|
|
);
|
|
render(vdom, document.body);
|