export function ModeBadge({ mode }: { mode: string }) { const m = (mode || "").toLowerCase(); const label = m === "local" ? "Local" : m === "hybrid" ? "Hybrid" : m === "hosted_wrapper" ? "Hosted Wrapper" : mode; const cls = m === "hosted_wrapper" ? "hosted_wrapper" : m; return {label}; }