import { cn } from "@/lib/utils"; export function SectionHeader({ eyebrow, title, action, className, }: { eyebrow?: string; title: React.ReactNode; action?: React.ReactNode; className?: string; }) { return (
{eyebrow &&
{eyebrow}
}

{title}

{action && (
{action}
)}
); } export function MetricTile({ label, value, hint, tone = "neutral", spark, icon, className, }: { label: string; value: React.ReactNode; hint?: React.ReactNode; tone?: "neutral" | "signal" | "amber" | "vermilion"; spark?: number[]; icon?: React.ReactNode; className?: string; }) { const toneColor = tone === "vermilion" ? "var(--color-vermilion)" : tone === "amber" ? "var(--color-amber)" : tone === "signal" ? "var(--color-signal)" : "var(--color-ink)"; return (
{label}
{icon && {icon}}
{value}
{hint && (
{hint}
)} {spark && spark.length > 1 && (
)}
); }