import React from 'react'; import type { Dayjs } from 'dayjs'; import dayjs from 'dayjs'; import customParseFormat from 'dayjs/plugin/customParseFormat'; import { TimePicker } from 'antd'; dayjs.extend(customParseFormat); const onChange = (time: Dayjs, timeString: string) => { console.log(time, timeString); }; const App: React.FC = () => ( ); export default App;