UnknownNote.tsx raw
1 import { cn } from '@/lib/utils'
2 import { Event } from 'nostr-tools'
3 import { useTranslation } from 'react-i18next'
4 import ClientSelect from '../ClientSelect'
5
6 export default function UnknownNote({ event, className }: { event: Event; className?: string }) {
7 const { t } = useTranslation()
8
9 return (
10 <div
11 className={cn(
12 'flex flex-col gap-2 items-center text-muted-foreground font-medium my-4',
13 className
14 )}
15 >
16 <div>{t('Cannot handle event of kind k', { k: event.kind })}</div>
17 <ClientSelect event={event} />
18 </div>
19 )
20 }
21