import React from "react"; import { Box, Text } from "ink"; import { useTheme } from "../theme.js"; export function HeaderBar(props: { title: string; connected: number; total: number; runtime?: string; phase?: string; risk?: string; account?: string; ai?: string; }): JSX.Element { const theme = useTheme(); const statusColor = props.connected > 0 ? theme.success : theme.warning; const riskColor = props.risk === "HIGH" ? theme.error : props.risk === "MEDIUM" ? theme.warning : theme.success; return ( {props.title} Connected {props.connected}/{props.total} Runtime {props.runtime || "ready"} Phase {props.phase || "INPUT"} Risk {props.risk || "LOW"} Account {props.account || "default"} AI {props.ai || "deterministic"} ); }