import { ThemeColorsContext } from 'Components/utils/colors' import { SitePathsContext } from 'Components/utils/withSitePaths' import React, { useContext } from 'react' import emoji from 'react-easy-emoji' import { useSelector } from 'react-redux' import { Link } from 'react-router-dom' import { analysisWithDefaultsSelector } from 'Selectors/analyseSelectors' import './Targets.css' export default function Targets() { const colors = useContext(ThemeColorsContext) const sitePaths = useContext(SitePathsContext) const analysis = useSelector(analysisWithDefaultsSelector) let { nodeValue, unité: unit, dottedName } = analysis.targets[0] return (
{nodeValue?.toFixed(1)}{' '} {unit} {emoji('📖')}
) }