import Link from 'next/link'; import { fmtInt } from '@/lib/format'; import { pageInfo, pageWindow } from '@/lib/pagination'; /** * Server-side pager (URL state, §295). Renders "Showing a–b of N", previous/next links with * rel=prev/next, and a compact page window. Pure links: works without JavaScript and is crawlable. */ export function Pager({ total, pageSize, page, hrefFor, label = 'Pagination', noun, className = '', }: { total: number; pageSize: number; page: number; /** URL for a given page (1-based). Page 1 should drop the param so canonical URLs stay clean. */ hrefFor: (page: number) => string; /** aria-label for the