import React, {FC} from 'react'; import {VerticalStepStyle as S} from './vertical-step.style'; import {IVerticalStep as Props} from '.'; export const VerticalStepComponent: FC = ({ title, subtitle, active, color, focus, size = 'md', disable, onSelect, noLine, children, }) => { const isActive = active ? 'active' : ''; const isFocus = focus ? 'focus' : ''; const isDisable = disable ? 'disable' : ''; const hasLine = noLine ? 'disappear' : ''; const onClick = () => { if (!disable && onSelect) onSelect(); }; return ( {active && } {title && ( {title} )} {subtitle && ( {subtitle} )} {children} ); };