import Container from "./components/Container"; import { CardTitle, CardDescription } from "@/components/ui/card"; import { RenderText } from "../TextRendering"; import { getTagsValues } from "@/lib/nostr/utils"; import LinkCard from "@/components/LinkCard"; import { copyText } from "@/lib/utils"; import { nip19 } from "nostr-tools"; import { toast } from "sonner"; import { type KindCardProps } from "./"; export default function Kind1(props: KindCardProps) { const { content, pubkey, tags, created_at: createdAt } = props; const r = getTagsValues("r", tags).filter(Boolean); const npub = nip19.npubEncode(pubkey); return ( { void copyText(JSON.stringify(props)); toast.success("Copied Text!"); }, }, ]} > {!!r.length && (
{r.map((url, idx) => ( ))}
)}
); }