import { PersonAvatar } from "./person-avatar"; export function PersonAvatarGroup({ companyId, people, max = 3, peopleLabel = "Personas", }: { companyId: string; people: readonly { id: string; name: string; photoVersion?: string | null | undefined }[]; max?: number; peopleLabel?: string; }) { const visible = people.slice(0, max); const remaining = people.length - visible.length; if (!people.length) { return —; } return (
{visible.map((person) => ( ))}
{remaining > 0 && ( +{remaining} )}
); }