diff --git a/src/components/KindRenderer.tsx b/src/components/KindRenderer.tsx index 6ea2481..46c175e 100644 --- a/src/components/KindRenderer.tsx +++ b/src/components/KindRenderer.tsx @@ -1,6 +1,9 @@ import { getKindInfo } from "@/constants/kinds"; import { kinds } from "nostr-tools"; import { NIPBadge } from "./NIPBadge"; +import { Copy, CopyCheck } from "lucide-react"; +import { Button } from "./ui/button"; +import { useCopy } from "@/hooks/useCopy"; // NIP-01 Kind ranges const REPLACEABLE_START = 10000; @@ -15,6 +18,11 @@ export default function KindRenderer({ kind }: { kind: number }) { const Icon = kindInfo?.icon; const category = getKindCategory(kind); const eventType = getEventType(kind); + const { copy, copied } = useCopy(); + + function copyKind() { + copy(String(kind)); + } if (!kindInfo) { return ( @@ -47,21 +55,31 @@ export default function KindRenderer({ kind }: { kind: number }) { {/* Details Grid */}
{kind}
-
+ {kind}
+
+ d-tag
>
)}
-
{kindInfo.nip && (
<>