UNPKG

648 BTypeScriptView Raw
1import type { PaginationProps as PaginationUiComponentProps } from '../ui/Pagination';
2import type { UsePaginationProps } from 'react-instantsearch-core';
3type UiProps = Pick<PaginationUiComponentProps, 'pages' | 'currentPage' | 'isFirstPage' | 'isLastPage' | 'nbPages' | 'createURL' | 'onNavigate' | 'translations'>;
4export type PaginationProps = Omit<PaginationUiComponentProps, keyof UiProps> & UsePaginationProps & {
5 translations?: Partial<UiProps['translations']>;
6};
7export declare function Pagination({ showFirst, showPrevious, showNext, showLast, padding, totalPages, translations, ...props }: PaginationProps): JSX.Element;
8export {};