import { ChevronLeftIcon, ChevronRightIcon, DoubleArrowLeftIcon, DoubleArrowRightIcon } from "@radix-ui/react-icons"; import { Table } from "@tanstack/react-table"; import { Button } from "@app/components/ui/button"; import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@app/components/ui/select"; import { useTranslations } from "next-intl"; interface DataTablePaginationProps { table: Table; } export function DataTablePagination({ table }: DataTablePaginationProps) { const t = useTranslations(); return (
{t('paginator', {current: table.getState().pagination.pageIndex + 1, last: table.getPageCount()})}
); }