Files
smesh/src/components/ContentPreview/PictureNotePreview.tsx
codytseng f41536a793 fix: 🐛
2025-08-27 15:05:47 +08:00

20 lines
426 B
TypeScript

import { cn } from '@/lib/utils'
import { Event } from 'nostr-tools'
import { useTranslation } from 'react-i18next'
export default function PictureNotePreview({
event,
className
}: {
event: Event
className?: string
}) {
const { t } = useTranslation()
return (
<div className={cn('pointer-events-none', className)}>
[{t('Image')}] <span className="italic pr-0.5">{event.content}</span>
</div>
)
}