mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
55d6735e7b
and remove submodules
21 lines
659 B
TypeScript
21 lines
659 B
TypeScript
/** @jsx h */
|
|
import { h, render } from "preact";
|
|
import { RelayRecommendList } from "./relay-recommend-list.tsx";
|
|
import { testEventBus } from "./_setup.test.ts";
|
|
import { RelayConfig } from "./relay-config.ts";
|
|
import { InMemoryAccountContext } from "@blowater/nostr-sdk";
|
|
import { ConnectionPool } from "@blowater/nostr-sdk";
|
|
|
|
const pool = new ConnectionPool();
|
|
const ctx = InMemoryAccountContext.Generate();
|
|
const relayConfig = RelayConfig.Default({ ctx, relayPool: pool });
|
|
|
|
render(
|
|
<RelayRecommendList
|
|
relayConfig={relayConfig}
|
|
emit={testEventBus.emit}
|
|
getRelayRecommendations={() => new Set()}
|
|
/>,
|
|
document.body,
|
|
);
|