"use client"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; interface ChartDataPoint { label: string; value: number; } export function DashboardChart({ title, data, description, }: { title: string; data: ChartDataPoint[]; color?: string; description?: string; }) { const max = Math.max(1, ...data.map((point) => point.value)); return ( {title} {description && (

{description}

)}
{data.map((point) => (
{point.value}
{point.label}
))}
); }