import PageHeaderWrapper from '@/components/PageHeaderWrapper'; import { Card, Steps } from 'antd'; import React, { Fragment } from 'react'; import styles from '../style.less'; const { Step } = Steps; interface IStepFormProps { location: Location; } const StepForm: React.FC = props => { const { location, children } = props; const getCurrentStep = () => { const { pathname } = location; const pathList = pathname.split('/'); switch (pathList[pathList.length - 1]) { case 'info': return 0; case 'confirm': return 1; case 'result': return 2; default: return 0; } }; return ( {children} ); }; export default StepForm;