import React from 'react'; import { SmileOutlined } from '@ant-design/icons'; import { DatePicker, Space } from 'antd'; import type { Dayjs } from 'dayjs'; const smileIcon = ; const { RangePicker } = DatePicker; type DatePickerValue = Dayjs | null; type RangePickerValue = [Dayjs | null, Dayjs | null] | null; const onChange = ( date: DatePickerValue | RangePickerValue, dateString: [string, string] | string, ) => { console.log(date, dateString); }; const App: React.FC = () => ( ); export default App;