import { CheckCircle2, XCircle, AlertCircle } from "lucide-react" import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert" interface ServiceStatus { name: string status: "running" | "error" | "warning" } interface ServerStatusProps { services: ServiceStatus[] error?: string } export function ServerStatus({ services, error }: ServerStatusProps) { if (error) { return ( Server Error {error} ) } return (

Service Status

{services.map((service) => (
{service.status === "running" && ( )} {service.status === "error" && ( )} {service.status === "warning" && ( )} {service.name}
{service.status.charAt(0).toUpperCase() + service.status.slice(1)}
))}
) }