import { CircleAlert, Loader2 } from "lucide-react"; import { useTranslation } from "react-i18next"; import { cn } from "@/lib/utils"; import type { HostConnectionState } from "./remote-context"; /** Connectivity is independent of which host the user is currently viewing. */ export function HostConnectionStatus({ state, compact = false }: { state: HostConnectionState; compact?: boolean; }) { const { t } = useTranslation(); const label = t(`connection.${state}`); return {state === "connecting" ? : state === "error" ? : } {label} ; }