import React from 'react' import { useSelector } from 'react-redux' import { DottedName } from 'Rules' import { parsedRulesSelector } from 'Selectors/analyseSelectors' import répartitionSelector from 'Selectors/repartitionSelectors' import './Distribution.css' import './PaySlip' import RuleLink from './RuleLink' import BarChartBranch from './BarChart' export default function Distribution() { const distribution = useSelector(répartitionSelector) as any if (!Object.values(distribution).length) { return null } return ( <>