import React from 'react'; import { Legend } from 'recharts'; interface CustomLegendProps { payload?: any[]; } function CustomLegend({ payload }: CustomLegendProps) { return (