import { type Table } from '@tanstack/react-table' import { ChevronLeftIcon, ChevronRightIcon } from 'lucide-react' import { Button } from '@repo/ui/components/ui/button' import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from '@repo/ui/components/ui/select' interface DataTablePaginationProps { table: Table } export function DataTablePagination({ table }: DataTablePaginationProps) { const { pageIndex, pageSize } = table.getState().pagination const rowCount = table.getRowCount() return (

Itens por página

{(pageIndex + 1) * pageSize - pageSize + 1}- {Math.min((pageIndex + 1) * pageSize, rowCount)}
) }