You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
512 B

import { useEmojiInfosForEvent } from '@/hooks'
import { stripTrailingStringifiedNostrEvent } from '@/lib/nostr-event-json'
import { Event } from 'nostr-tools'
import Content from './Content'
export default function NormalContentPreview({
event,
className
}: {
event: Event
className?: string
}) {
const emojiInfos = useEmojiInfosForEvent(event)
const content = stripTrailingStringifiedNostrEvent(event.content)
return <Content content={content} className={className} emojiInfos={emojiInfos} />
}