import React from 'react'; import { CheckCircle, XCircle, Loader2, AlertCircle } from 'lucide-react'; import { classNames } from '~/utils/classNames'; interface HealthStatusBadgeProps { status: 'healthy' | 'unhealthy' | 'checking' | 'unknown'; responseTime?: number; className?: string; } function HealthStatusBadge({ status, responseTime, className }: HealthStatusBadgeProps) { const getStatusConfig = () => { switch (status) { case 'healthy': return { color: 'text-green-500', bgColor: 'bg-green-500/10 border-green-500/20', Icon: CheckCircle, label: 'Healthy', }; case 'unhealthy': return { color: 'text-red-500', bgColor: 'bg-red-500/10 border-red-500/20', Icon: XCircle, label: 'Unhealthy', }; case 'checking': return { color: 'text-blue-500', bgColor: 'bg-blue-500/10 border-blue-500/20', Icon: Loader2, label: 'Checking', }; default: return { color: 'text-bolt-elements-textTertiary', bgColor: 'bg-bolt-elements-background-depth-3 border-bolt-elements-borderColor', Icon: AlertCircle, label: 'Unknown', }; } }; const config = getStatusConfig(); const Icon = config.Icon; return (