import { ChevronLeft, ChevronRight } from 'lucide-react' import { iconButton } from './styles' interface PaginationProps { page: number pageSize: number total: number onPage: (page: number) => void } export function Pagination({ page, pageSize, total, onPage }: PaginationProps) { const pages = Math.max(1, Math.ceil(total / pageSize)) const first = total === 0 ? 0 : (page - 1) * pageSize + 1 return (