export default function ProgressBar(props) { return (
{props.count.map((num) => { let className = 'step'; const index = props.count.indexOf(num); if (index === props.currentTab) { className = 'step active'; } return
props.switchTab(index)}>
})}
); }