import React, {Component} from 'react'; import './ProgressBox.css'; const currentPath= window.location.pathname; class ProgressBox extends Component { render() { const index = !this.props.state.question ? this.props.state.currentQuestionIndex : this.props.state.currentQuestionIndex + 1; const style = { color: this.props.state.config.styles.secondaryFontColor }; const searchParams= new URLSearchParams(window.location.search); const paramid =searchParams.get('id') return (
/
{currentPath.replace("/","")}

Question {index-1} sur {this.props.state.config.questions.length-1}

{paramid && paramid !== "" && (

{paramid}

)}
) } } export default ProgressBox;