# /app/components/StatusBadge.py import gradio as gr def render_status_badge(status: str = "online") -> gr.HTML: s = (status or "offline").lower() color = "#16a34a" if s == "online" else "#ea580c" if s == "busy" else "#ef4444" html = f""" {s.capitalize()} """ return gr.HTML(value=html)