"use client"; import { Table } from "@tanstack/react-table"; import { Button } from "@/components/ui/button"; import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react"; interface DataTablePaginationProps { table: Table; } export function DataTablePagination({ table, }: DataTablePaginationProps) { return (
{table.getFilteredSelectedRowModel().rows.length > 0 && ( {table.getFilteredSelectedRowModel().rows.length} of{" "} {table.getFilteredRowModel().rows.length} row(s) selected. )}

Page {table.getState().pagination.pageIndex + 1} of{" "} {table.getPageCount()}

); }