@ministryofjustice/probation-search-frontend
Version:
A shared UI component to search for probation cases from within your Express/Nunjucks application
18 lines (17 loc) • 482 B
TypeScript
interface PageLink {
number: number;
current: boolean;
href: string;
}
export interface Pagination {
from: string;
to: string;
total: string;
next?: string;
prev?: string;
items: (PageLink | {
ellipsis: boolean;
})[];
}
export default function getPaginationLinks(currentPage: number, totalPages: number, totalResults: number, pathFn: (pageNumber: number) => string, pageSize?: number, maxPagesToShow?: number): Pagination;
export {};