"use client"
import type { ReactNode } from "react"
import { Card, CardContent, CardHeader, CardTitle } from "@/app/components/ui/card"
import { TrendingUp, TrendingDown, Minus } from "lucide-react"
interface StatCardProps {
title: string
value: string | number
icon?: ReactNode
change?: {
value: string | number
type: "increase" | "decrease" | "neutral"
label?: string
}
description?: string
}
export function StatCard({ title, value, icon, change, description }: StatCardProps) {
const getChangeIcon = () => {
switch (change?.type) {
case "increase":
return {description}