// Dashboard Kit — shared React components // Loaded via // REQUIRES: window.DK.theme + window.DK.utils + window.React (already loaded) // Exposes: window.DK.components (function () { const ns = (window.DK = window.DK || {}); const T = ns.theme; // ── BackToHub ───────────────────────────────────────────────────────── // Floating back-link to / (the hub). Mount once near the top of any // dashboard; positioned absolute so it doesn't disturb existing layout. function BackToHub() { return ( ← Hub ); } // ── MetricCard ──────────────────────────────────────────────────────── // KPI tile: label (uppercase mono) + big value + optional sub-line. // `accent` overrides value color (use theme.GREEN/RED/GOLD for status). function MetricCard({ label, value, sub, accent }) { return (