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

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

) } }