import { useMemo } from "react"; import { useRequestBuilder, useUserProfile } from "../src"; import { FlatNoteStore, NostrSystem, RequestBuilder, TaggedRawEvent } from "@snort/system"; const System = new NostrSystem({}); // some bootstrap relays ["wss://relay.snort.social", "wss://nos.lol"].forEach(r => System.ConnectToRelay(r, { read: true, write: false })); export function Note({ ev }: { ev: TaggedRawEvent }) { const profile = useUserProfile(System, ev.pubkey); return (
{ev.content}