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, }: { totalDocs: number /** e.g. "municĂ­pio encontrado" */ singular: string /** e.g. "municĂ­pios encontrados" */ plural: string page: number totalPages: number hrefForPage: (page: number) => string }) => (

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

)