import { CircleAlertIcon } from 'lucide-react' import { Avatar, AvatarFallback } from '@/components/ui/Avatar' import { Badge } from '@/components/ui/Badge' import { campaignUserInitials } from '@/utilities/campaignUserProfile' import { municipalityListCoverageLabels } from '@/utilities/municipalityLabels' export type MunicipalityAdvisorAvatarEntry = { id: number name: string } /** * E9: a priority município with nobody answering for it is the queue's loudest * row, so it reads "Sem responsável" in destructive — the same words the * overview's coluna da vergonha uses to count them. Non-priority ones keep the * softer pending tone: they are a gap, not a fire. It stands in for the advisor * names, so it only ever states an absence. */ export const MissingAdvisorBadge = ({ isPriority }: { isPriority: boolean }) => ( ) export const MunicipalityAdvisorAvatarStack = ({ advisors, isPriority, maxVisible = 3, }: { advisors: MunicipalityAdvisorAvatarEntry[] isPriority: boolean maxVisible?: number }) => { if (!advisors.length) return return (
{advisors.slice(0, maxVisible).map((advisor) => ( {campaignUserInitials(advisor.name)} ))}
{advisors.map((advisor) => advisor.name).join(', ')}
) }