import { NDKEvent } from '@nostr-dev-kit/ndk'; import { memo } from 'react'; import { ChildNote, NoteActions } from '@shared/notes'; import { User } from '@shared/user'; import { WIDGET_KIND } from '@stores/constants'; import { useNostr } from '@utils/hooks/useNostr'; import { useRichContent } from '@utils/hooks/useRichContent'; import { useWidget } from '@utils/hooks/useWidget'; export function TextNote({ event }: { event: NDKEvent }) { const { parsedContent } = useRichContent(event.content); const { addWidget } = useWidget(); const { getEventThread } = useNostr(); const thread = getEventThread(event); return (