mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
19 lines
452 B
TypeScript
19 lines
452 B
TypeScript
|
/** @jsx h */
|
||
|
import { h } from "https://esm.sh/preact@10.17.1";
|
||
|
import { render } from "https://esm.sh/preact@10.17.1";
|
||
|
import { PrivateKey } from "../lib/nostr-ts/key.ts";
|
||
|
import { eventBus } from "./_setup.test.ts";
|
||
|
import { SignIn } from "./signIn.tsx";
|
||
|
|
||
|
render(
|
||
|
<SignIn
|
||
|
eventBus={eventBus}
|
||
|
privateKey={PrivateKey.Generate().hex}
|
||
|
/>,
|
||
|
document.body,
|
||
|
);
|
||
|
|
||
|
for await (const e of eventBus.onChange()) {
|
||
|
console.log(e);
|
||
|
}
|