import { PRIMARY_COLOR } from '../../_constants/common' import RDoughnutChart from '../chart/RDoughnutChart' import './boxChart.scss' export default function BoxDoughnutChart({data = [], title, propsContainer}) { const [current, target] = data const chartData = (current / target === 1 || current > target) ? [current] : [current, target - current]; const renderStats = () => { return ( <>

{current}

{target > 0 ? target : '...'}

) } return (

{title}

{renderStats()}
) }