UNPKG

@atlaskit/pagination

Version:

Pagination allows you to divide large amounts of content into smaller chunks across multiple pages.

13 lines (12 loc) 449 B
import { type ReactElement } from 'react'; declare const collapseRange: <T>(pages: Array<T>, current: number, { max, ellipsis, transform, }: { max: number; ellipsis: (arg: { key: string; testId?: string | undefined; from: number; to: number; }) => ReactElement; transform: (page: T, index: number, testId?: string) => ReactElement; }, testId?: string) => ReactElement[]; export default collapseRange;