import React from 'react'; import { Pagination, PaginationProps } from 'antd'; import { useTranslation } from 'react-i18next'; import './index.css'; export interface AppPaginationProps extends PaginationProps { total: number; } export default function AppPagination(props: AppPaginationProps) { const { t } = useTranslation(); const { className, showSizeChanger, ...restProps } = props; const mergedClassName = ['app-global-pagination', className].filter(Boolean).join(' '); const mergedShowSizeChanger = showSizeChanger === undefined || showSizeChanger === true ? { showSearch: false } : showSizeChanger; return (