import { useContext } from 'react'; import classNames from 'classnames'; import { useMessages } from 'components/hooks'; import { ReportContext } from '../[reportId]/Report'; import { formatLongNumber } from 'lib/format'; import styles from './GoalsChart.module.css'; export function GoalsChart({ className }: { className?: string; isLoading?: boolean }) { const { report } = useContext(ReportContext); const { formatMessage, labels } = useMessages(); const { data } = report || {}; return (