()
| 30 | |
| 31 | // Straight from the tap: no await before startStatusPip. |
| 32 | const toggle = () => { |
| 33 | setTapError(''); |
| 34 | if (diag?.active) { |
| 35 | stopStatusPip().catch(e => setTapError(String(e))); |
| 36 | return; |
| 37 | } |
| 38 | startStatusPip(mode).catch(e => setTapError(e instanceof Error ? `${e.name}: ${e.message}` : String(e))); |
| 39 | }; |
| 40 | |
| 41 | return ( |
| 42 | <div className="flex-1 min-w-0 flex flex-col gap-2"> |
nothing calls this directly
no test coverage detected