import ColdIcon from "./state-indicators/cold.svg?react"; import RunningIcon from "./state-indicators/running.svg?react"; type SVGIcon = React.FunctionComponent>; export type ProjectStatus = "RUNNING" | "STOPPED"; const INDICATORS: Record = { STOPPED: ColdIcon, RUNNING: RunningIcon, }; interface ConversationStateIndicatorProps { status: ProjectStatus; } export function ConversationStateIndicator({ status, }: ConversationStateIndicatorProps) { const StateIcon = INDICATORS[status]; return (
); }