"use client"; import Container from "./components/Container"; import { CardTitle, CardDescription } from "@/components/ui/card"; import { getTagValues, getTagsValues } from "@/lib/nostr/utils"; import { type Event } from "nostr-tools"; import { nip19 } from "nostr-tools"; import { removeDuplicates } from "@/lib/utils"; import { toast } from "sonner"; import { copyText } from "@/lib/utils"; export default function Kind30023(props: Event) { const { content, pubkey, tags, created_at: createdAt } = props; const npub = nip19.npubEncode(pubkey); const title = getTagValues("title", tags); const summary = getTagValues("summary", tags); const contentTags = removeDuplicates(getTagsValues("t", tags)).filter( Boolean, ); return ( { void copyText(JSON.stringify(props)); toast.success("Copied Text!"); }, }, ]} > {title} {summary ?? content} ); }