import React, { ComponentPropsWithoutRef } from 'react'; import StepDisabled from './StepDisabled'; import StepLink from './StepLink'; import StepCurrent from './StepCurrent'; type Props = Omit, 'href'> & { href?: string; mode?: 'link' | 'active' | 'disabled'; }; const Step = ({ number, id, title, classModifier, href, onClick, mode = 'link', className, }: Props) => { switch (mode) { case 'link': return ( ); case 'active': return ( ); default: return ( ); } }; export default Step;