/* @flow */ import Distribution from 'Components/Distribution' import PaySlip from 'Components/PaySlip' import React, { Component } from 'react' import { Trans } from 'react-i18next' import { connect } from 'react-redux' // $FlowFixMe import { formValueSelector } from 'redux-form' type OwnProps = {} type Props = OwnProps & { period: 'mois' | 'année' } export default (connect(state => ({ period: formValueSelector('conversation')(state, 'période') }))( class SalaryFirstExplanation extends Component { render() { return ( <>

À quoi servent mes cotisations ?

{this.props.period === 'mois' ? 'Fiche de paie mensuelle' : 'Détail annuel des cotisations'}

) } } ): React$ComponentType)