import type React from "react" import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card" import { IoTrendingUp, IoTrendingDown, IoBarChart } from "react-icons/io5" interface StatCardProps { title: string value: string description?: string trend?: { value: string positive: boolean } icon?: React.ReactNode className?: string } export function StatCard({ title = "Total Revenue", value = "$45,231.89", description = "Monthly revenue", trend = { value: "20.1%", positive: true }, icon = , className, }: StatCardProps) { return ( {title}
{icon}
{value}
{trend && ( {trend.positive ? : } {trend.value} )} {description}
) }