import React from 'react'; import { Legend } from 'recharts'; interface CustomLegendProps { payload?: any[]; } function CustomLegend({ payload }: CustomLegendProps) { return (
{payload?.map((entry) => (
{entry.value.includes('(Comparison)') ? (
) : (
)} {entry.value}
))}
); } export default CustomLegend;