import React, { useRef } from "react" import BoxFull from "./BoxFull" import ChartComponent from "react-chartjs-2" export default function BoxChart({chartProps, ...props}) { const boxContentsRef = useRef(null) const getCssVar = (variable) => { const computedStyle = window.getComputedStyle(boxContentsRef.current) console.debug(variable, computedStyle.getPropertyValue(variable)) return computedStyle.getPropertyValue(variable).trim() } return ( {boxContentsRef.current ? : null} ) }