mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-09 06:56:57 +02:00
10 lines
400 B
TypeScript
10 lines
400 B
TypeScript
import { Button } from "@/components/ui/button";
|
|
import { SizeIcon } from "@radix-ui/react-icons";
|
|
import { nip19 } from "nostr-tools";
|
|
|
|
export default function ViewNoteButton({ event }: { event: any }) {
|
|
const encodedNoteId = nip19.noteEncode(event.id);
|
|
return (
|
|
<Button variant="secondary" onClick={() => window.location.href = '/note/'+encodedNoteId}><SizeIcon /></Button>
|
|
);
|
|
} |