import type { ButtonHTMLAttributes, HTMLAttributes } from "react";
import type { BaseComponentSizes } from "@helpers/types";
export interface PaginationProps extends HTMLAttributes {
currentPage: number;
totalPages: number;
onPage: (page: number) => void;
onPrevious: () => void;
prevTitle?: string;
onNext: () => void;
nextTitle?: string;
prevButtonDisabled?: boolean;
nextButtonDisabled?: boolean;
variant: TPaginationVariant;
size: BaseComponentSizes;
}
export interface ArrowButtonProps extends ButtonHTMLAttributes, Pick {
direction: "left" | "right";
}
export interface PageButtonProps extends ButtonHTMLAttributes, Pick {
active: boolean;
}
export interface DotButtonProps extends ButtonHTMLAttributes, Pick {
}
export type TPaginationVariant = "default" | "outlined" | "ghost";