import React from 'react'; import PropTypes from 'prop-types'; import { withTranslation } from 'react-i18next'; class ProgressBar extends React.Component { render() { const { header, currentCount, totalCount, isInProgress, } = this.props; const percentage = currentCount / totalCount * 100; const isActive = (isInProgress != null) ? isInProgress // apply props.isInProgress if set : (currentCount !== totalCount); // otherwise, set true when currentCount does not equal totalCount return ( <>