import { T } from 'Components' import Distribution from 'Components/Distribution' import PaySlip from 'Components/PaySlip' import StackedBarChart from 'Components/StackedBarChart' import { ThemeColorsContext } from 'Components/utils/colors' import { getRuleFromAnalysis } from 'Engine/rules' import React, { useContext, useRef } from 'react' import emoji from 'react-easy-emoji' import { Trans, useTranslation } from 'react-i18next' import { useSelector } from 'react-redux' import { RootState } from 'Reducers/rootReducer' import { analysisWithDefaultsSelector, defaultUnitsSelector } from 'Selectors/analyseSelectors' import * as Animate from 'Ui/animate' class ErrorBoundary extends React.Component { state = {} as { error?: string } 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: RootState) => !state.simulation?.foldedSteps.length ) const distributionRef = useRef(null) 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(ThemeColorsContext) return (

Répartition du total chargé

) } function PaySlipSection() { const unit = useSelector(defaultUnitsSelector)[0] return (

{unit?.endsWith('mois') ? ( Fiche de paie ) : ( Détail annuel des cotisations )}

) } const DistributionSection = () => (

À quoi servent mes cotisations ?

)