// utils import PropTypes from 'prop-types'; const ProgressInfo = ({progress, text}) => { return (
0 ? 'up positive' : 'down negative'}`}/> {progress > 0 ? '+' : '-'}{Math.abs(progress)} {text}
) } ProgressInfo.propTypes = { progress: PropTypes.number.isRequired, text: PropTypes.string.isRequired, } export default ProgressInfo