import React, { useState } from 'react'; import type { RadioChangeEvent } from 'antd'; import { DatePicker, Radio, Space } from 'antd'; import type { SizeType } from 'antd/es/config-provider/SizeContext'; const { RangePicker } = DatePicker; const App: React.FC = () => { const [size, setSize] = useState('middle'); const handleSizeChange = (e: RadioChangeEvent) => { setSize(e.target.value); }; return ( Large middle Small ); }; export default App;