import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router-dom'; import { Avatar } from '@/mastodon/components/avatar'; import { AvatarGroup } from '@/mastodon/components/avatar_group'; import type { Account } from '@/mastodon/models/account'; import { useFetchFamiliarFollowers } from '../hooks/familiar_followers'; const AccountLink: React.FC<{ account?: Account }> = ({ account }) => { if (!account) { return null; } return ( ); }; const FamiliarFollowersReadout: React.FC<{ familiarFollowers: Account[] }> = ({ familiarFollowers, }) => { const messageData = { name1: , name2: , othersCount: familiarFollowers.length - 2, }; if (familiarFollowers.length === 1) { return ( ); } else if (familiarFollowers.length === 2) { return ( ); } else { return ( ); } }; export const FamiliarFollowers: React.FC<{ accountId: string }> = ({ accountId, }) => { const { familiarFollowers, isLoading } = useFetchFamiliarFollowers({ accountId, }); if (isLoading || familiarFollowers.length === 0) { return null; } return (
{familiarFollowers.slice(0, 3).map((account) => ( ))}
); };