import { useFetchFollowings } from '@/hooks' import { toFollowingList } from '@/lib/link' import { SecondaryPageLink } from '@/PageManager' import { useFollowList } from '@/providers/FollowListProvider' import { useNostr } from '@/providers/NostrProvider' import { Loader } from 'lucide-react' import { useTranslation } from 'react-i18next' export default function Followings({ pubkey }: { pubkey: string }) { const { t } = useTranslation() const { pubkey: accountPubkey } = useNostr() const { followings: selfFollowings } = useFollowList() const { followings, isFetching } = useFetchFollowings(pubkey) return ( {accountPubkey === pubkey ? ( selfFollowings.length ) : isFetching ? ( ) : ( followings.length )}
{t('Following')}
) }