import { CampaignMetricStrip } from '@/components/campaign/CampaignMetricStrip' import { campaignPrioritySurfaceClassName } from '@/components/campaign/CampaignPageShell' import type { PlazaListOverviewData } from '@/utilities/plazaPageData' const voteFormatter = new Intl.NumberFormat('pt-BR') export const PlazaListOverview = ({ view }: { view: PlazaListOverviewData }) => (
0 ? voteFormatter.format(view.staffVoteTotal) : '—', emphasize: true, }, { label: 'Declarações de votos', value: view.pledgeCount ? `${voteFormatter.format(view.pledgeCount)}${ view.missingEstimateCount ? ` · ${voteFormatter.format(view.missingEstimateCount)} sem estimativa` : '' }` : 'Nenhuma', }, { label: 'Cobertura de assessoria', value: `${view.withAdvisorCount} de ${view.plazaCount} Praças`, progress: view.plazaCount > 0 ? Math.round((view.withAdvisorCount / view.plazaCount) * 100) : undefined, }, ]} />
)