import React from 'react' import { formatProfileDate, formatProfileNumber } from '../../../lib/profileFormatters' function formatFollowedAt(value) { if (!value) return null try { return formatProfileDate(value, { year: 'numeric', month: 'short', day: 'numeric' }) } catch { return null } } export default function TabFollowers({ listing, username, followerCount }) { const items = Array.isArray(listing?.data) ? listing.data : [] const total = Number(listing?.total ?? followerCount ?? 0) const currentPage = Number(listing?.current_page ?? 1) const lastPage = Number(listing?.last_page ?? 1) const prevUrl = listing?.prev_page_url ?? null const nextUrl = listing?.next_page_url ?? null return (

Followers {formatProfileNumber(total)}

{items.length === 0 ? (

{username ? `${username} has no public followers yet.` : 'No public followers yet.'}

) : ( )} {lastPage > 1 ? ( ) : null}
) }