/* @flow */ import { setSituationBranch } from 'Actions/actions' import { defineDirectorStatus, isAutoentrepreneur } from 'Actions/companyStatusActions' import React from 'react' import { connect } from 'react-redux' import { règleAvecMontantSelector } from 'Selectors/regleSelectors' import { noUserInputSelector } from '../selectors/analyseSelectors' import './ComparativeTargets.css' import type { RègleAvecMontant } from 'Types/RegleTypes' const connectRègles = (situationBranchName: string) => connect( state => { return ({ revenuDisponible: !noUserInputSelector(state) && règleAvecMontantSelector(state, { situationBranchName })('revenu net'), retraite: !noUserInputSelector(state) && règleAvecMontantSelector(state, { situationBranchName })('protection sociale . retraite') }: { revenuDisponible: boolean | RègleAvecMontant, retraite: boolean | RègleAvecMontant }) }, { setSituationBranch, isAutoentrepreneur, defineDirectorStatus } ) const ComparativeTargets = () => (