You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
431 B
18 lines
431 B
2 years ago
|
import React from 'react';
|
||
|
import type { PaginationProps } from 'antd';
|
||
|
import { Pagination } from 'antd';
|
||
|
|
||
|
const itemRender: PaginationProps['itemRender'] = (_, type, originalElement) => {
|
||
|
if (type === 'prev') {
|
||
|
return <a>Previous</a>;
|
||
|
}
|
||
|
if (type === 'next') {
|
||
|
return <a>Next</a>;
|
||
|
}
|
||
|
return originalElement;
|
||
|
};
|
||
|
|
||
|
const App: React.FC = () => <Pagination total={500} itemRender={itemRender} />;
|
||
|
|
||
|
export default App;
|