import React from 'react'; import type { Dayjs } from 'dayjs'; import { Calendar } from 'antd'; import type { CalendarProps } from 'antd'; const App: React.FC = () => { const onPanelChange = (value: Dayjs, mode: CalendarProps['mode']) => { console.log(value.format('YYYY-MM-DD'), mode); }; return ; }; export default App;