import { path } from 'ramda' import React, { Component } from 'react' import { Trans, translate } from 'react-i18next' import { connect } from 'react-redux' import './Explanation.css' import ResultView from './ResultView/ResultView' import withColours from './withColours' @translate() @withColours @connect(state => ({ analysis: state.analysis })) export default class Explanation extends Component { render() { let targetRules = path(['analysis', 'targets'], this.props) if (!targetRules) return null return (