import React from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; import { Progress } from 'reactstrap'; const LabeledProgressBar = (props) => { const { header, currentCount, totalCount, errorsCount, isInProgress, } = props; const progressingColor = isInProgress ? 'info' : 'success'; return ( <>
{header}
{currentCount} / {totalCount}
); }; LabeledProgressBar.propTypes = { header: PropTypes.string.isRequired, currentCount: PropTypes.number.isRequired, totalCount: PropTypes.number.isRequired, errorsCount: PropTypes.number, isInProgress: PropTypes.bool, }; export default withTranslation()(LabeledProgressBar);