import React from 'react'; import { useProfile } from "nostr-react"; import { nip19, } from "nostr-tools"; import { Card, SmallCardContent, } from "@/components/ui/card" import Image from 'next/image'; import Link from 'next/link'; import { PlayIcon, StackIcon, VideoIcon } from '@radix-ui/react-icons'; interface GalleryCardProps { pubkey: string; eventId: string; imageUrl: string; linkToNote: boolean; } const GalleryCard: React.FC = ({ pubkey, eventId, imageUrl, linkToNote }) => { const { data: userData } = useProfile({ pubkey, }); const encodedNoteId = nip19.noteEncode(eventId); const card = (
{eventId}
); return ( <> {linkToNote ? ( {card} ) : ( card )} ); } export default GalleryCard;