import React from 'react'; import PropTypes from 'prop-types'; import { Trans, withTranslation } from 'react-i18next'; import { INSTALL_TOTAL_STEPS } from '../../helpers/constants'; const getProgressPercent = (step) => (step / INSTALL_TOTAL_STEPS) * 100; const Progress = (props) => (
install_step {props.step}/{INSTALL_TOTAL_STEPS}
); Progress.propTypes = { step: PropTypes.number.isRequired, }; export default withTranslation()(Progress);