import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { TrendingUp, TrendingDown } from "lucide-react" import type { MetricCard as MetricCardType } from "@/types/dashboard" export function MetricCard({ title, value, change, changeLabel }: MetricCardType) { const isPositive = change >= 0 return ( {title}
{value}
{isPositive ? ( ) : ( )} {isPositive ? "+" : ""} {change}% {changeLabel}
) }