()
| 505 | return s.remoteConnectionStatus; |
| 506 | } |
| 507 | export function Spinner() { |
| 508 | const $ = _c(8); |
| 509 | const settings = useSettings(); |
| 510 | const reducedMotion = settings.prefersReducedMotion ?? false; |
| 511 | const [ref, time] = useAnimationFrame(reducedMotion ? null : 120); |
| 512 | if (reducedMotion) { |
| 513 | let t0; |
| 514 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 515 | t0 = <Text color="text">●</Text>; |
| 516 | $[0] = t0; |
| 517 | } else { |
| 518 | t0 = $[0]; |
| 519 | } |
| 520 | let t1; |
| 521 | if ($[1] !== ref) { |
| 522 | t1 = <Box ref={ref} flexWrap="wrap" height={1} width={2}>{t0}</Box>; |
| 523 | $[1] = ref; |
| 524 | $[2] = t1; |
| 525 | } else { |
| 526 | t1 = $[2]; |
| 527 | } |
| 528 | return t1; |
| 529 | } |
| 530 | const frame = Math.floor(time / 120) % SPINNER_FRAMES.length; |
| 531 | const t0 = SPINNER_FRAMES[frame]; |
| 532 | let t1; |
| 533 | if ($[3] !== t0) { |
| 534 | t1 = <Text color="text">{t0}</Text>; |
| 535 | $[3] = t0; |
| 536 | $[4] = t1; |
| 537 | } else { |
| 538 | t1 = $[4]; |
| 539 | } |
| 540 | let t2; |
| 541 | if ($[5] !== ref || $[6] !== t1) { |
| 542 | t2 = <Box ref={ref} flexWrap="wrap" height={1} width={2}>{t1}</Box>; |
| 543 | $[5] = ref; |
| 544 | $[6] = t1; |
| 545 | $[7] = t2; |
| 546 | } else { |
| 547 | t2 = $[7]; |
| 548 | } |
| 549 | return t2; |
| 550 | } |
| 551 | function findNextPendingTask(tasks: Task[] | undefined): Task | undefined { |
| 552 | if (!tasks) { |
| 553 | return undefined; |
nothing calls this directly
no test coverage detected