import { Button } from "@nextui-org/react"; import { ChevronLeftIcon, ChevronRightIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, } from "@radix-ui/react-icons"; import { type Table } from "@tanstack/react-table"; interface DataTablePaginationProps { table: Table; pageSizeOptions?: number[]; } export function DataTablePagination({ table, }: DataTablePaginationProps) { // console.log(table); return (
Page {table.getState().pagination.pageIndex + 1} of{" "} {table.getPageCount()}
); }