import type { ReactNode } from 'react' import { CampaignListPagination } from '@/components/campaign/shared/CampaignListPagination' /** * The count line + pagination every campaign list renders under its results. * Server component: `hrefForPage` stays on the server (the pagination anchors * are the client leaves). */ export const CampaignListFooter = ({ totalDocs, singular, plural, page, totalPages, hrefForPage, totals, }: { totalDocs: number /** e.g. "município encontrado" */ singular: string /** e.g. "municípios encontrados" */ plural: string page: number totalPages: number hrefForPage: (page: number) => string /** * B202 — optional extra line between the count and the pagination. Only the * municipalities list passes it; the other lists render byte-identically. */ totals?: ReactNode }) => (

{totalDocs} {totalDocs === 1 ? singular : plural}

{totals}
)