import React, { useState } from 'react'; import { Avatar, List, Space, Radio } from 'antd'; type PaginationPosition = 'top' | 'bottom' | 'both'; type PaginationAlign = 'start' | 'center' | 'end'; const data = [ { title: 'Ant Design Title 1', }, { title: 'Ant Design Title 2', }, { title: 'Ant Design Title 3', }, { title: 'Ant Design Title 4', }, ]; const positionOptions = ['top', 'bottom', 'both']; const alignOptions = ['start', 'center', 'end']; const App: React.FC = () => { const [position, setPosition] = useState('bottom'); const [align, setAlign] = useState('center'); return ( <> Pagination Position: { setPosition(e.target.value); }} > {positionOptions.map((item) => ( {item} ))} Pagination Align: { setAlign(e.target.value); }} > {alignOptions.map((item) => ( {item} ))} ( } title={{item.title}} description="Ant Design, a design language for background applications, is refined by Ant UED Team" /> )} /> ); }; export default App;