import { T } from 'Components' import Distribution from 'Components/Distribution' import PaySlip from 'Components/PaySlip' import StackedBarChart from 'Components/StackedBarChart' import { ThemeColoursContext } from 'Components/utils/withColours' import { getRuleFromAnalysis } from 'Engine/rules' import React, { useRef, useContext } from 'react' import emoji from 'react-easy-emoji' import { Trans } from 'react-i18next' import { useSelector } from 'react-redux' import { useTranslation } from 'react-i18next' import { analysisWithDefaultsSelector, usePeriod } from 'Selectors/analyseSelectors' import * as Animate from 'Ui/animate' class ErrorBoundary extends React.Component { state = {} static getDerivedStateFromError() { return { error: 'The SalaryExplanation component triggered an error. This often happens in its subcomponents reducers' } } render() { if (this.state.error) return
Erreur : {this.state.error}
return this.props.children } } export default function SalaryExplanation() { const showDistributionFirst = useSelector( state => !state.conversationSteps.foldedSteps.length ) const distributionRef = useRef({}) return ( {showDistributionFirst ? ( <> ) : ( <>
)}

Le simulateur vous aide à comprendre votre bulletin de paie, sans lui être opposable. Pour plus d'informations, rendez vous sur  service-public.fr .

Il ne prend pour l'instant pas en compte les accords et conventions collectives, ni la myriade d'aides aux entreprises. Trouvez votre convention collective{' '} ici , et explorez les aides sur  aides-entreprises.fr.

) } function RevenueRepatitionSection() { const analysis = useSelector(analysisWithDefaultsSelector) const getRule = getRuleFromAnalysis(analysis) const { t } = useTranslation() const { palettes } = useContext(ThemeColoursContext) return (

Répartition du total chargé

) } function PaySlipSection() { const period = usePeriod() return (

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

) } const DistributionSection = () => (

À quoi servent mes cotisations ?

)