import { isEmpty, path, contains } from 'ramda' import React, { Component } from 'react' import { Link } from 'react-router-dom' import { connect } from 'react-redux' import { withRouter } from 'react-router' import './Results.css' import RuleValueVignette from './rule/RuleValueVignette' import ProgressTip from 'Components/ProgressTip' @withRouter @connect(state => ({ analysis: state.analysis, targetName: state.targetName, conversationStarted: !isEmpty(state.form), conversationFirstAnswer: path(['form', 'conversation', 'values'])(state), situationGate: state.situationGate, done: state.done, themeColours: state.themeColours })) export default class Results extends Component { render() { let { analysis, conversationStarted, done, themeColours } = this.props if (!analysis) return null let { targets } = analysis let textStyle = { color: themeColours.textColour } return (