import React from 'react'; import type { PaginationProps } from 'antd'; import { ConfigProvider, Pagination } from 'antd'; const itemRender: PaginationProps['itemRender'] = (_, type, originalElement) => { if (type === 'prev') { return Previous; } if (type === 'next') { return Next; } return originalElement; }; const App: React.FC = () => ( `Total ${total} items`} />
); export default App;