import type { LucideIcon } from "lucide-react"; import { Card, CardContent } from "poyraz-ui/atoms"; import { cn } from "@/lib/utils"; export type StatCardTone = | "primary" | "green" | "blue" | "amber" | "red" | "rose"; const iconToneClasses: Record = { primary: "bg-primary/10 text-primary", green: "bg-success text-success-icon", blue: "bg-info text-info-icon", amber: "bg-warning text-warning-icon", red: "bg-destructive-muted text-destructive-muted-foreground", rose: "bg-destructive-muted text-destructive-muted-foreground", }; type StatCardProps = { label: string; value: string; icon: LucideIcon; tone?: StatCardTone; description?: string; featured?: boolean; className?: string; }; export function StatCard({ label, value, icon: Icon, tone = "primary", description, featured = false, className, }: StatCardProps) { return (

{label}

{value}

{description ? (

{description}

) : null}
); }