import type { NodeStatus } from "@fusion/core"; import "./NodeHealthDot.css"; export interface NodeHealthDotProps { status: NodeStatus; showLabel?: boolean; className?: string; compact?: boolean; } function toStatusLabel(status: NodeStatus): string { return status.charAt(0).toUpperCase() + status.slice(1); } export function NodeHealthDot({ status, showLabel = false, className, compact = false }: NodeHealthDotProps) { const label = toStatusLabel(status); return ( {showLabel ? {label} : null} ); }