import type { LucideIcon } from "lucide-react"; import { ConnectionLine } from "./ConnectionLine"; interface StatusCardProps { icon: LucideIcon; label: string; detail?: string; success?: boolean; line?: boolean; } export function StatusCard({ icon: Icon, label, detail, success = true, line = true, }: Readonly) { return ( <> {line && }
{label} {success ? "Connected" : "Unreachable"} {detail && ( {detail} )}
); }