import type { ReactNode } from 'react'; import { Button } from '../button'; import { Icon } from '../icon'; export type PaginationProps = { hasPrevPage: boolean; hasNextPage: boolean; isLoading?: boolean; children?: ReactNode; onBack: () => void; onNext: () => void; onFirst?: () => void; onLast?: () => void; }; const buttonClass = 'rounded-full w-[34px] h-[34px]'; export const Pagination = ({ hasPrevPage, hasNextPage, isLoading, children, onBack, onNext, onFirst, onLast, }: PaginationProps) => { return (
{onFirst && ( )} {children} {onLast && ( )}
); };