import { FaCircleCheck, FaTriangleExclamation } from "react-icons/fa6"; import { LuCircleHelp, LuX } from "react-icons/lu"; import { cn } from "@/lib/utils"; import type { HardwareRow } from "@/utils/health"; const MESSAGE_COLOR: Record = { ok: "text-success", warning: "text-yellow-500", error: "text-danger", unknown: "text-muted-foreground", }; export default function HardwareStatusRow({ row }: { row: HardwareRow }) { return (
{row.state === "ok" && ( )} {row.state === "warning" && ( )} {row.state === "error" && } {row.state === "unknown" && ( )}
{row.label} {row.detail && ( {row.detail} )}
{row.message && (
{row.message}
)}
); }