import type { KpiItem } from "@/lib/overview";

export function KPIStrip({ items }: { items: KpiItem[] }) {
  return (
    <section className="psm-card psm-kpis" aria-label="Key metrics">
      {items.map((item) => (
        <div className="psm-kpi" key={item.key}>
          <span className="psm-kpi-key">{item.key}</span>
          <span className={`psm-kpi-value${item.missing ? " missing" : ""}`}>{item.value}</span>
          <span className="psm-kpi-sub">{item.sublabel}</span>
        </div>
      ))}
    </section>
  );
}

