UNPKG

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