(error: string)
| 33 | } |
| 34 | |
| 35 | function setError(error: string) { |
| 36 | if (timeoutRef.current) { |
| 37 | clearTimeout(timeoutRef.current); |
| 38 | } |
| 39 | _setError(error); |
| 40 | timeoutRef.current = setTimeout(() => { |
| 41 | _setError(null); |
| 42 | }, 3000) as unknown as number; |
| 43 | } |
| 44 | |
| 45 | return ( |
| 46 | <div> |
no outgoing calls
no test coverage detected