import React, { Component } from 'react' import { Trans, translate } from 'react-i18next' import { connect } from 'react-redux' import { withRouter } from 'react-router' import './ProgressTip.css' import { Line } from 'rc-progress' import { pick } from 'ramda' @withRouter @translate() @connect( pick(['foldedSteps', 'nextSteps', 'themeColours', 'conversationStarted']) ) export default class ProgressTip extends Component { render() { let { nextSteps, foldedSteps, themeColours: { colour, textColourOnWhite }, conversationStarted } = this.props, nbQuestions = nextSteps.length if (!conversationStarted) return null return (
{ nbQuestions != 0 ?

{nbQuestions === 1 ? dernière question ! : moins de {{nbQuestions}} questions }

:
}
) } }