mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-07 22:16:46 +02:00
13 lines
444 B
TypeScript
13 lines
444 B
TypeScript
import { Button } from "@/components/ui/button";
|
|
import { SizeIcon } from "@radix-ui/react-icons";
|
|
import Link from "next/link";
|
|
import { nip19 } from "nostr-tools";
|
|
|
|
export default function ViewNoteButton({ event }: { event: any }) {
|
|
const encodedNoteId = nip19.noteEncode(event.id);
|
|
return (
|
|
<Link href={'/note/' + encodedNoteId} passHref>
|
|
<Button variant="secondary"><SizeIcon /></Button>
|
|
</Link>
|
|
);
|
|
} |