import { FC, MouseEvent as ReactMouseEvent } from 'react'; import { AgentStatus } from './types'; export interface AgentStatusBadgeProps { status: AgentStatus; className?: string; /** * Optional probe error to expose as a hover tooltip (and aria-label). * Surfaces the actual reason a `DEGRADED` agent is unhealthy — most * commonly "boot state awaiting-config" when the gateway-auth push * during onboarding silently failed. Without this, users see a yellow * badge with no signal about WHY, and have to curl /health/ready * themselves to debug. */ reason?: string | null; /** * Optional href that turns the badge into an anchor pointing at the * agent's Connection Log tab. When this is set the badge is keyboard- * focusable, supports Ctrl/Cmd-click to open in a new tab, and surfaces * a "click to see connection log" tooltip suffix so users know it's * actionable. Provide together with `onClick` if you also need a SPA * navigation handler — the anchor `href` will still be the source of * truth for the browser's new-tab affordance. */ linkTo?: string; /** * SPA navigation callback fired on unmodified left-click. When the * caller is already on the agent's detail page this is typically a * `setActiveTab('connection')` call; when the caller is on a list view * it's typically a `navigate(detailUrl + '?tab=connection')` call. The * anchor still owns the modifier-key path so Ctrl-click opens the * destination in a new tab regardless. */ onClick?: (event: ReactMouseEvent) => void; } /** * AgentStatusBadge - Display agent status with appropriate styling. * * When `linkTo` or `onClick` is supplied the badge renders as an anchor * and becomes the canonical entry point into the agent's Connection Log * tab. This keeps the user one click away from the timeline of probe / * register / gateway-auth-push events any time they spot a non-Active * badge. */ export declare const AgentStatusBadge: FC;