import { Button, Group } from "@mantine/core"; import { useTranslation } from "react-i18next"; export interface PagePaginationProps { hasPrevPage: boolean; hasNextPage: boolean; onPrev: () => void; onNext: () => void; } export default function Paginate({ hasPrevPage, hasNextPage, onPrev, onNext, }: PagePaginationProps) { const { t } = useTranslation(); if (!hasPrevPage && !hasNextPage) { return null; } return ( ); }