import type { FC } from 'react' import React from 'react' import { Pagination } from 'react-headless-pagination' import { ArrowLeftIcon, ArrowRightIcon } from '@heroicons/react/24/outline' import { useTranslation } from 'react-i18next' import s from './style.module.css' type Props = { current: number onChange: (cur: number) => void total: number limit?: number } const CustomizedPagination: FC = ({ current, onChange, total, limit = 10 }) => { const { t } = useTranslation() const totalPages = Math.ceil(total / limit) return ( {t('appLog.table.pagination.previous')}
{t('appLog.table.pagination.next')}
) } export default CustomizedPagination