import Link from 'next/link' import type { ComponentProps } from 'react' import { Badge } from '@/components/ui/Badge' import { formatElectionNumber } from '@/lib/electionFormat' import { ticketPartnerOfficeLabels, ticketPartnerTierLabels, type TicketPartnerResult, type TicketPartnerTier, } from '@/lib/ticketPartnerOpportunities' const tierBadgeVariants: Record['variant']> = { aliado: 'support-engaged', aliadoHistorico: 'tse', neutro: 'outline', adversario: 'support-negative', } const votesLabel = (votes: number) => `${formatElectionNumber(votes)} ${votes === 1 ? 'voto' : 'votos'}` /** * A6 — ranked dobradinha opportunities for 2026 in this municipality's * geography. Until the TSE publishes the 2026 candidacies and the Fase 5 * reconcile marks who runs again, the card says so instead of listing anyone. * The write path stays in the operational vertical (`/campanha/dobradinhas`) — * this insight suggests, it never registers. */ export const MunicipalityTicketPartnersCard = ({ result }: { result: TicketPartnerResult }) => (

Dobradinhas potenciais para 2026

Candidatos a deputado federal e estadual que concorrem de novo em 2026, ranqueados por alinhamento com a chapa e pela força eleitoral aqui em 2022 (votos nominais TSE, 1º turno).

{result.status === 'pending2026' ? (

Indisponível até as candidaturas de 2026: quando o TSE publicar o registro (previsto para depois de 15/08) e a conciliação marcar quem concorre de novo, a lista aparece aqui automaticamente.

) : result.opportunities.length === 0 ? (

Nenhum candidato que retorna em 2026 teve votos nominais nesta geografia em 2022.

) : (
    {result.opportunities.map((opportunity, index) => (
  1. {index + 1}º
    {opportunity.name} {opportunity.elected2022 ? ( · eleito em 2022 ) : null} {ticketPartnerOfficeLabels[opportunity.office]} ·{' '} {opportunity.party ?? 'Sem partido'} · {votesLabel(opportunity.votes2022)} em 2022
    {ticketPartnerTierLabels[opportunity.tier]}
  2. ))}
)}

Dobradinha fechada é decisão da coordenação — registre e priorize em{' '} Dobradinhas .

)