(label: string, delayMs = 1600)
| 2048 | } |
| 2049 | |
| 2050 | function clearCaptureStatusLater(label: string, delayMs = 1600) { |
| 2051 | if (captureStatusTimeoutRef.current) { |
| 2052 | window.clearTimeout(captureStatusTimeoutRef.current); |
| 2053 | } |
| 2054 | captureStatusTimeoutRef.current = window.setTimeout(() => { |
| 2055 | captureStatusTimeoutRef.current = 0; |
| 2056 | setCaptureStatus((current) => |
| 2057 | current?.label === label ? null : current, |
| 2058 | ); |
| 2059 | }, delayMs); |
| 2060 | } |
| 2061 | |
| 2062 | async function downloadSimulatorScreenshot(withBezel: boolean) { |
| 2063 | if (!selectedSimulator) { |
no test coverage detected