import { extractFirstPictureFromPictureEvent } from '@/lib/event' import { toNote } from '@/lib/link' import { cn } from '@/lib/utils' import { useSecondaryPage } from '@/PageManager' import { Event } from 'nostr-tools' import Image from '../Image' import UserAvatar from '../UserAvatar' import Username from '../Username' export default function PictureNoteCard({ event, className }: { event: Event className?: string }) { const { push } = useSecondaryPage() const firstImage = extractFirstPictureFromPictureEvent(event) if (!firstImage) return null return (