import React from 'react'; import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer, ReferenceLine } from 'recharts'; import { ExposurePoint } from '../types'; interface ExposureChartProps { data: ExposurePoint[]; } const ExposureChart: React.FC = ({ data }) => { const isHigh = data.length > 0 && data[data.length - 1].exposure > 25000; const mainColor = isHigh ? '#ef4444' : '#06b6d4'; return (
`$${value/1000}k`} />
); }; export default ExposureChart;