"use client" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { TrendingUp, TrendingDown, Minus } from "lucide-react"; import { LucideIcon } from "lucide-react"; interface MetricsCardProps { title: string; value: string; description: string; icon: LucideIcon; trend: "up" | "down" | "neutral"; trendValue: string; } export default function MetricsCard({ title, value, description, icon: Icon, trend, trendValue }: MetricsCardProps) { const getTrendIcon = () => { switch (trend) { case "up": return ; case "down": return ; default: return ; } }; const getTrendColor = () => { switch (trend) { case "up": return "text-green-600"; case "down": return "text-red-600"; default: return "text-gray-600"; } }; return ( {title}
{value}

{description}

{getTrendIcon()} {trendValue}
); }