import moment from 'moment' import { Area, AreaChart, CartesianGrid, ResponsiveContainer, Tooltip, XAxis, YAxis, } from 'recharts' import { formatValue } from 'utils/formatters' import { FormattedNumber } from 'components/FormattedNumber' import { Text } from 'components/Text' import { useAccountStats } from 'hooks/data/useAccountStats' import useStore from 'store' export const RiskChart = ({ data }: RiskChartProps) => { const enableAnimations = useStore((s) => s.enableAnimations) const accountStats = useAccountStats() const currentRisk = accountStats?.risk ?? 0 return (