'use client'; import { ArrowUp, ArrowDown, LucideIcon } from 'lucide-react'; interface StatCardProps { title: string; value: string | number; icon: LucideIcon; trend?: string; trendUp?: boolean; color?: string; } export default function DataStats({ title, value, icon: Icon, trend, trendUp, color = "blue" }: StatCardProps) { const colorStyles: Record = { blue: "bg-blue-50 text-blue-600", green: "bg-green-50 text-green-600", yellow: "bg-yellow-50 text-yellow-600", red: "bg-red-50 text-red-600", purple: "bg-purple-50 text-purple-600", }; return (

{title}

{value}

{trend && (
{trendUp ? : } {trend} 较上月
)}
); }