spaceforge / frontend /src /components /ModeBadge.tsx
2Btainment's picture
Upload folder using huggingface_hub
3806142 verified
Raw History Blame Contribute Delete
340 Bytes
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 <span className={`pill ${cls}`}>{label}</span>;
}