import { Card, CardContent, CardFooter, CardHeader, CardTitle } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; import { cn } from "@/lib/utils"; import { TrendingUp, TrendingDown } from "lucide-react"; import { Link } from "react-router-dom"; interface StatCardProps { title: string; value: string; change?: string; changeType?: "positive" | "negative" | "neutral"; description?: string; href?: string; } export function StatCard({ title, value, change, changeType = "neutral", description, href }: StatCardProps) { const content = (
{title} {change && ( {changeType === "positive" && } {changeType === "negative" && } {change} )}

{value}

{description && (

{description}

)}
); if (href) return {content}; return content; }