mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-06-04 17:51:16 +02:00
mv codebase to parent directory
This commit is contained in:
13
components/ViewNoteButton.tsx
Normal file
13
components/ViewNoteButton.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user