import React, { Fragment, ReactElement, ReactFragment } from 'react'; import classnames from 'classnames'; import './ProgressDots.scss'; interface Props { currentDot: string; dots: string[]; } export const ProgressDots = (props: Props): ReactElement => { const dot = (name: string): ReactElement => (
); return (
{props.dots.map((name: string) => dot(name))}
); };