()
| 152 | |
| 153 | // Show "thinking..." for remaining time if < 2s elapsed, then show duration |
| 154 | const showDuration = (): void => { |
| 155 | setThinkingStatus(duration); |
| 156 | // Clear after 2s |
| 157 | clearStatusTimer = setTimeout(setThinkingStatus, 2000, null); |
| 158 | }; |
| 159 | if (remainingThinkingTime > 0) { |
| 160 | showDurationTimer = setTimeout(showDuration, remainingThinkingTime); |
| 161 | } else { |
no outgoing calls
no test coverage detected