import { Link } from 'react-router'; import EmptyState from '../EmptyState'; import type { FillerFollowing } from '../../../utils/filler-user-profile'; const initials = (name: string) => name .split(' ') .map((part) => part[0]) .filter(Boolean) .slice(0, 2) .join('') .toUpperCase(); interface FollowingTabProps { following: (FillerFollowing & { isFollowing: boolean })[]; onToggleFollow: (id: string) => void; } const FollowingTab = ({ following, onToggleFollow }: FollowingTabProps) => { if (following.length === 0) { return ; } return (
{following.map((f) => (
{initials(f.name)}
{f.userAccountId ? ( {f.name} ) : (

{f.name}

)}

{f.meta}

))}
); }; export default FollowingTab;