(props: SidecarPanelProps)
| 78 | } |
| 79 | |
| 80 | function hintFor(props: SidecarPanelProps): string { |
| 81 | switch (props.state) { |
| 82 | case 'off': |
| 83 | return LLM_OFF_HINT; |
| 84 | case 'disabled-by-policy': |
| 85 | return llmPolicyDetail(props.policyDetail); |
| 86 | case 'not-running': |
| 87 | return LLM_NOT_RUNNING_HINT; |
| 88 | default: |
| 89 | return props.detail; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | export default function SidecarPanel(props: SidecarPanelProps): JSX.Element { |
| 94 | const facts = props.facts; |
no test coverage detected