import { useMemo } from 'react' import { Area, AreaChart, XAxis, YAxis } from 'recharts' const SimpleAreaChart = ({ color, data, height, name, width, xKey, yKey, }: { color: string data: any[] height: number name: string width: number xKey: string yKey: string }) => { const flipGradientCoords = useMemo( () => data[0][yKey] <= 0 && data[data.length - 1][yKey] < data[0][yKey], [data] ) return ( ) } export default SimpleAreaChart