import * as React from "react" import { cn } from "../ui/utils" import { TrendingUp, TrendingDown, type LucideIcon } from "lucide-react" interface StatCardProps extends React.ComponentProps<"div"> { icon: LucideIcon label: string value: string | number unit?: string trend?: { value: string direction: "up" | "down" } children?: React.ReactNode } function StatCard({ icon: Icon, label, value, unit, trend, children, className, ...props }: StatCardProps) { return (
{label}
{value} {unit && {unit}}
{trend && (