import { useNostrArchivesSocial } from '@/hooks/useNostrArchivesSocial' import { toFollowersList } from '@/lib/link' import { useSmartFollowersListNavigation } from '@/PageManager' import { Skeleton } from '@/components/ui/skeleton' import { useTranslation } from 'react-i18next' export default function SmartFollowers({ pubkey }: { pubkey: string }) { const { t } = useTranslation() const { followersCount, isFetching, showFollowers } = useNostrArchivesSocial(pubkey) const { navigateToFollowersList } = useSmartFollowersListNavigation() if (!showFollowers) return null const handleClick = () => { navigateToFollowersList(toFollowersList(pubkey)) } return ( {isFetching ? ( ) : ( followersCount )}
{t('Followers')}
) }