import React from 'react'; import { Col, Row, Statistic } from 'antd'; import type { StatisticProps } from 'antd'; const { Countdown } = Statistic; const deadline = Date.now() + 1000 * 60 * 60 * 24 * 2 + 1000 * 30; // Dayjs is also OK const App: React.FC = () => { const onFinish = () => { console.log('finished!'); }; const onChange = (val: StatisticProps['value']) => { if (val && 4.95 * 1000 < val && val < 5 * 1000) { console.log('changed!'); } }; return ( ); }; export default App;