()
| 142 | |
| 143 | // Show "thinking..." for remaining time if < 2s elapsed, then show duration |
| 144 | const showDuration = (): void => { |
| 145 | setThinkingStatus(duration); |
| 146 | // Clear after 2s |
| 147 | clearStatusTimer = setTimeout(setThinkingStatus, 2000, null); |
| 148 | }; |
| 149 | if (remainingThinkingTime > 0) { |
| 150 | showDurationTimer = setTimeout(showDuration, remainingThinkingTime); |
| 151 | } else { |
no outgoing calls
no test coverage detected