import React, { useState } from 'react'; import { Flex, Steps } from 'antd'; import type { StepsProps } from 'antd'; const App: React.FC = () => { const [current, setCurrent] = useState(0); const onChange = (value: number) => { console.log('onChange:', value); setCurrent(value); }; const sharedProps: StepsProps = { type: 'panel', current, onChange, items: [ { title: 'Step 1', subTitle: '00:00', content: 'This is a content.', }, { title: 'Step 2', content: 'This is a content.', status: 'error', }, { title: 'Step 3', content: 'This is a content.', }, ], }; return ( ); }; export default App;