import { LocalTime } from "@/components/local-time"; import type { EndpointProbe } from "@/lib/db/schema"; import { cn } from "@/lib/utils"; /** Reachable / unreachable / untested, from the last connection test. */ export function EndpointStatus({ probe }: { probe: EndpointProbe | null }) { const state = !probe ? "untested" : probe.ok ? "reachable" : "unreachable"; return ( {state} {probe && ( )} ); }