(props: SidecarPanelProps)
| 61 | } |
| 62 | |
| 63 | function messageFor(props: SidecarPanelProps): string { |
| 64 | switch (props.state) { |
| 65 | case 'off': |
| 66 | return LLM_OFF_MESSAGE; |
| 67 | case 'disabled-by-policy': |
| 68 | return llmPolicyMessage(props.project); |
| 69 | case 'not-running': |
| 70 | return LLM_NOT_RUNNING_MESSAGE; |
| 71 | case 'starting': |
| 72 | return LLM_STARTING_MESSAGE; |
| 73 | case 'ready': |
| 74 | return LLM_READY_MESSAGE; |
| 75 | default: |
| 76 | return LLM_OFF_MESSAGE; |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | function hintFor(props: SidecarPanelProps): string { |
| 81 | switch (props.state) { |
no test coverage detected