import { Fragment } from 'react'; import PropTypes from 'prop-types'; import { Check } from 'mastodon/components/check'; import classNames from 'classnames'; const ProgressIndicator = ({ steps, completed }) => (
{(new Array(steps)).fill().map((_, i) => ( {i > 0 &&
i })} />}
i })}> {completed > i && }
))}
); ProgressIndicator.propTypes = { steps: PropTypes.number.isRequired, completed: PropTypes.number, }; export default ProgressIndicator;