import { useNostrEvents } from "nostr-react"; import { nip19 } from 'nostr-tools' import Linkify from 'react-linkify'; type NostrEvent = { "content": string, "created_at": number, id?: string } function Note({ e }: { e: NostrEvent }) { const date = new Date(e.created_at * 1000); const linkRoot = "https://snort.social/e/"; let noteId; if (e.id) { noteId = nip19.noteEncode(e.id) } return (