import React from 'react' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' import type { MetricPoint } from '../App' import { panelStyle, titleStyle } from '../App' interface Props { data: MetricPoint[] } const CustomTooltip = ({ active, payload, label }: any) => { if (!active || !payload?.length) return null return (
Step {label}
{payload.map((p: any) => (
{p.name}: {p.value?.toFixed(1)}
))}
) } export function TelemetryChart({ data }: Props) { if (data.length < 2) return null return (
📈 Live Telemetry
} />
) }