import React, { Component } from 'react'
import { Trans, translate } from 'react-i18next'
import ResultsGrid from 'Components/ResultsGrid'
import { salaries } from 'Components/TargetSelection'
import { isEmpty, intersection, head, path } from 'ramda'
import Rule from 'Components/rule/Rule'
import './Explanation.css'
import { pluck } from 'ramda'
import { connect } from 'react-redux'
import SearchButton from './SearchButton'
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 (
Comprendre
mes résultats
{this.renderExplanation(targetRules)}