import { type Table } from '@tanstack/react-table' import { ChevronLeft, ChevronRight } 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 (
{table.getFilteredSelectedRowModel().rows.length} de{' '} {table.getFilteredRowModel().rows.length} linha(s) selecionada(s).

Itens por página

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