import React from 'react'; import { SmileOutlined } from '@ant-design/icons'; import type { Dayjs } from 'dayjs'; import { DatePicker, Space } from 'antd'; 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;