import { cn } from "@/lib/utils"; interface StatusBadgeProps { status: "connected" | "error" | "disconnected" | "pending"; label?: string; } const statusConfig = { connected: { label: "Conectado", className: "bg-success/10 text-success border-success/20", }, error: { label: "Erro", className: "bg-destructive/10 text-destructive border-destructive/20", }, disconnected: { label: "Desconectado", className: "bg-muted text-muted-foreground border-border", }, pending: { label: "Pendente", className: "bg-warning/10 text-warning border-warning/20", }, }; export function StatusBadge({ status, label }: StatusBadgeProps) { const config = statusConfig[status]; return ( {label || config.label} ); }