import { Legend, type LegendProps } from '@/components/legend'; import { getFillColor, getStrokeColor } from '@/utils/colors'; import { type FormatOptions, formatValue } from '@/utils/format'; import type { ReactNode } from 'react'; import { Area, AreaChart, CartesianGrid, ResponsiveContainer, XAxis, YAxis } from 'recharts'; import type { AxisDomain } from 'recharts/types/util/types'; type Props = { title: ReactNode; subtitle?: ReactNode; legend?: LegendProps; formatOptions?: FormatOptions; domain?: AxisDomain; hueOffset?: number; data: number[][]; total: number; }; export const ChartCard = ({ data, domain, legend, hueOffset = 0, title, subtitle, formatOptions, total }: Props) => { return (