"use client"; import { LineChart as RechartsLineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts'; interface LineChartProps { data: Array<{ [key: string]: any }>; title?: string; xKey?: string; lines: Array<{ key: string; color?: string; name?: string }>; height?: number; } // Default colors for lines const COLORS = ['#6366f1', '#10b981', '#f59e0b', '#ef4444', '#8b5cf6']; export default function LineChart({ data, title, xKey = 'name', lines, height = 300 }: LineChartProps) { return (