'use client' import Link from 'next/link' import { SupportStatusBadge } from '@/components/campaign/leadership/SupportStatusBadge' import { MunicipalityV2DeclaredVotesCell } from '@/components/campaign/municipality/MunicipalityV2DeclaredVotesCell' import { MunicipalityV2EstimatedVotesCell } from '@/components/campaign/municipality/MunicipalityV2EstimatedVotesCell' import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow, } from '@/components/ui/Table' import { formatElectionNumber } from '@/lib/electionFormat' import type { MunicipalityV2NetworkViewModel } from '@/utilities/municipality/municipalityV2NetworkView' type MunicipalityV2NetworkListProps = { network: MunicipalityV2NetworkViewModel } export const MunicipalityV2NetworkList = ({ network }: MunicipalityV2NetworkListProps) => { if (network.rows.length === 0) { return (
Nenhuma liderança vinculada a este município ainda.
) } return ( <>Mostrando {formatElectionNumber(network.rows.length)} de{' '} {formatElectionNumber(network.totalCount)} lideranças — use Ver todas para o cadastro completo.
) : null} > ) }