Renders a PatternFly Label whose color and text are driven by a config map.
Label
config
const STATUS_CONFIG: Record<ServiceStatus, StatusBadgeConfig> = { active: { color: "green", label: "Active" }, failed: { color: "red", label: "Failed" },};<StatusBadge status={serviceStatus} config={STATUS_CONFIG} /> Copy
const STATUS_CONFIG: Record<ServiceStatus, StatusBadgeConfig> = { active: { color: "green", label: "Active" }, failed: { color: "red", label: "Failed" },};<StatusBadge status={serviceStatus} config={STATUS_CONFIG} />
Renders a PatternFly
Labelwhose color and text are driven by aconfigmap.