import React from 'react'; import { Calendar, ConfigProvider } from 'antd'; import type { CalendarProps } from 'antd'; import type { Dayjs } from 'dayjs'; /** Test usage. Do not use in your production. */ export default () => { const onPanelChange = (value: Dayjs, mode: CalendarProps['mode']) => { console.log(value.format('YYYY-MM-DD'), mode); }; return (
); };