import ProfileSearchBar from '@/components/ui/ProfileSearchBar' import { ExtendedKind } from '@/constants' import { PROFILE_PUBLICATIONS_TAB_KINDS } from '@/constants' import { forwardRef, useMemo, useState } from 'react' import { useTranslation } from 'react-i18next' import ProfileTimeline from './ProfileTimeline' const ProfilePublicationsFeed = forwardRef<{ refresh: () => void }, { pubkey: string }>(({ pubkey }, ref) => { const { t } = useTranslation() const [searchQuery, setSearchQuery] = useState('') const kindsList = useMemo(() => [...PROFILE_PUBLICATIONS_TAB_KINDS], []) const cacheKey = useMemo(() => `${pubkey}-profile-publications-v3`, [pubkey]) const visiblePublicationFilter = useMemo( () => (event: { kind: number }) => event.kind !== ExtendedKind.PUBLICATION_CONTENT, [] ) const getKindLabel = (_kindValue: string) => t('articles and publications') return (