import * as React from "react"; import { cva, type VariantProps } from "class-variance-authority"; import { cn } from "@/lib/utils"; const miniStatValue = cva("text-lg font-bold leading-none", { variants: { accent: { foreground: "text-[hsl(var(--foreground))]", primary: "text-[hsl(var(--primary))]", success: "text-[hsl(var(--success))]", warning: "text-[hsl(var(--warning))]", danger: "text-[hsl(var(--danger))]", purple: "text-[hsl(var(--purple))]", }, }, defaultVariants: { accent: "foreground", }, }); interface MiniStatProps extends React.HTMLAttributes, VariantProps { label: React.ReactNode; value: React.ReactNode; } export function MiniStat({ className, label, value, accent, ...props }: MiniStatProps) { return (
{label} {value}
); }