import { ThemeColoursContext } from 'Components/utils/withColours' import Value from 'Components/Value' import { findRuleByDottedName } from 'Engine/rules' import React, { useContext } from 'react' import emoji from 'react-easy-emoji' import { useSelector } from 'react-redux' import { config, animated, useSpring } from 'react-spring' import { flatRulesSelector } from 'Selectors/analyseSelectors' import répartitionSelector from 'Selectors/repartitionSelectors' import { isIE } from '../utils' import './Distribution.css' import './PaySlip' import RuleLink from './RuleLink' import useDisplayOnIntersecting from 'Components/utils/useDisplayOnIntersecting' export default function Distribution() { const distribution = useSelector(répartitionSelector) if (!Object.values(distribution).length) { return null } return ( <>
{branche.summary}