import { Separator } from '@/components/ui/separator' import { ExtendedKind } from '@/constants' import { shouldHideInteractions } from '@/lib/event-filtering' import { Event } from 'nostr-tools' import { useState } from 'react' import { useTranslation } from 'react-i18next' import HideUntrustedContentButton from '../HideUntrustedContentButton' import ReplyNoteList from '../ReplyNoteList' import ReplySort, { ReplySortOption } from './ReplySort' export default function NoteInteractions({ pageIndex, event, showQuotes: showQuotesProp }: { pageIndex?: number event: Event /** When set, overrides the default (quotes hidden for discussions only). */ showQuotes?: boolean }) { const { t } = useTranslation() const [replySort, setReplySort] = useState('oldest') const isDiscussion = event.kind === ExtendedKind.DISCUSSION const showQuotes = showQuotesProp ?? !isDiscussion // Hide interactions if event is in quiet mode if (shouldHideInteractions(event)) { return null } return ( <>
{t('Replies')}
{isDiscussion && ( <> )}
) }