import { ButtonHTMLAttributes, HTMLAttributes, PropsWithChildren } from 'react'; import { ISelectOption } from '../Select'; export type IPaginationOption = ISelectOption; export interface IPaginationContextProps extends PropsWithChildren { currentPage: number; pagesTotal: number; options?: Array; isCompact?: boolean; isDisabled?: boolean; onChange?: (currentPage: number) => void; onNext?: () => void; onPrevious?: () => void; } export interface IPaginationContainerProps extends Omit, 'onChange'>, IPaginationContextProps { className?: string; } export interface IPaginationButtonProps extends Omit, 'disabled'> { className?: string; isDisabled?: boolean; } export type IPaginationProps = IPaginationContainerProps;