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/ruleUtils' 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, defaultUnitSelector } from 'Selectors/analyseSelectors' import * as Animate from 'Ui/animate' export default function SalaryExplanation() { const showDistributionFirst = useSelector( (state: RootState) => !state.simulation?.foldedSteps.length ) const analysis = useSelector(analysisWithDefaultsSelector) const inversionFail = analysis?.cache._meta.inversionFail const distributionRef = useRef(null) // We can't provide an explanation if the engine has failed to run the // simulation. if (inversionFail) { return 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(defaultUnitSelector) return (

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

) } const DistributionSection = () => (

À quoi servent mes cotisations ?

)