import { ChevronLeftIcon, ChevronRightIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, } from "@radix-ui/react-icons"; import { Button, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@marzneshin/components"; import { useTranslation } from "react-i18next"; import { Table } from "@tanstack/react-table" export function DataTablePagination({ table }: { table: Table }) { const { t } = useTranslation(); return (
{table.options.onRowSelectionChange && (
{table.getFilteredSelectedRowModel().rows.length} {"/"} {table.getFilteredRowModel().rows.length} {t("table.selected")}
)}
{(table.getPageCount() - 1) !== 0 &&
Page {table.getState().pagination.pageIndex + 1} of{" "} {table.getPageCount() - 1}
}
); }