'use client' import { LineChart, Line, XAxis, YAxis, Tooltip, CartesianGrid, ResponsiveContainer } from 'recharts' import type { DayTokenRow } from '@/lib/insights/token-history' interface Props { data: DayTokenRow[] } export function TokenDayChart({ data }: Props) { if (data.length === 0) { return

Geen dag-data beschikbaar

} return ( (v as string).slice(5).replace('-', '/')} /> `$${(v as number).toFixed(3)}`} /> [`$${Number(v).toFixed(4)}`, 'Kosten']} /> ) }