import { LineChart as RechartsLineChart, Line, XAxis, YAxis, CartesianGrid, Tooltip, ResponsiveContainer } from 'recharts'; import { CardTitle } from '../ui/Typography'; import { englishToPersian, formatWithThousands } from '@/utils/numberUtils'; const formatNumber = (value: number | string) => { const formatted = formatWithThousands(value); return englishToPersian(formatted); }; interface LineChartProps { data: any[]; title?: string; color?: string; } export const LineChart = ({ data, title, color = '#10b981' }: LineChartProps) => { return (