import { ChevronLeftIcon, ChevronRightIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon, } from "@radix-ui/react-icons" import { Table } from "@tanstack/react-table" import { cn } from "@marzneshin/utils" import { Button, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, } from "@marzneshin/components" import { useTranslation } from "react-i18next" interface DataTablePaginationProps { table: Table disableSelected?: boolean } export function DataTablePagination({ table, disableSelected }: DataTablePaginationProps) { const { t } = useTranslation(); return (
{disableSelected || (
{table.getFilteredSelectedRowModel().rows.length} {"/"} {table.getFilteredRowModel().rows.length} {t('table.selected')}
)}

{t('table.row-per-page')}

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