UNPKG

ontime-components

Version:
37 lines (36 loc) 1.07 kB
import { PureComponent } from 'react'; import { IProps, IState } from '../../libs/interfaces'; import { TFuncClick } from '../../libs/types'; interface IPaginatorProps extends IProps { page?: number; limit?: number; total?: number; count?: number; onChange?: Function; } interface IPaginatorDefProps { page: number; limit: number; total: number; count: number; } interface IPaginatorState extends IState { page: number; } interface IPagin { name: string; page: number; active: boolean; } declare class Paginator extends PureComponent<IPaginatorProps & IPaginatorDefProps, IPaginatorState> { static defaultProps: IPaginatorDefProps; static getDerivedStateFromProps(nextProps: any, prevState: any): { page: any; } | null; onClick: TFuncClick; constructor(props: IPaginatorProps & IPaginatorDefProps); setState(state: IPaginatorState): Promise<unknown>; prepareData(): IPagin[]; render(): JSX.Element; } export { Paginator, IPaginatorProps, IPaginatorDefProps, IPaginatorState };