mirror of
https://github.com/lumina-rocks/lumina.git
synced 2026-04-09 23:16:47 +02:00
* add URL option to image upload * Full NIP-68 and NIP-71 implementation * changed deprecated note ids to nevent ids, with backward-compatability * interim state reels implementation * Fixed uploading from URL and added a Cancel button to the upload modal. Couldn't get rid of the errors. * Added ability to upload kinds 20, 21, 22, along with source tags (e, a, or u). Includes validation check. * added thumbnail support * included kind 21 and kind 22 in the feeds and searches * Implement inboxes/outboxes * implemented thumbnails in the profile feed * enhanced reels feed with #reels * interim implementation of pins * added pins * fixed the pins * tidied up the reels * fixed the uploader * Fixed build * update reels feed with the one from Lumina main * fixed the reels interactions * Added audio controls * Interim reelfeed state * feed working again * full fead --------- Co-authored-by: Silberengel <silberengel7@proton.com>
17 lines
526 B
TypeScript
17 lines
526 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 }) {
|
|
// Create nevent with relay hints
|
|
const nevent = nip19.neventEncode({
|
|
id: event.id,
|
|
relays: event.relays || []
|
|
});
|
|
return (
|
|
<Link href={'/note/' + nevent} passHref>
|
|
<Button variant="secondary"><SizeIcon /></Button>
|
|
</Link>
|
|
);
|
|
} |