PictureNotePreview.tsx raw
1 import { cn } from '@/lib/utils'
2 import { Event } from 'nostr-tools'
3 import { useTranslation } from 'react-i18next'
4
5 export default function PictureNotePreview({
6 event,
7 className
8 }: {
9 event: Event
10 className?: string
11 }) {
12 const { t } = useTranslation()
13
14 return (
15 <div className={cn('pointer-events-none', className)}>
16 [{t('Image')}] <span className="italic pr-0.5">{event.content}</span>
17 </div>
18 )
19 }
20