(t0)
| 80 | }); |
| 81 | } |
| 82 | export function Stats(t0) { |
| 83 | const $ = _c(4); |
| 84 | const { |
| 85 | onClose |
| 86 | } = t0; |
| 87 | let t1; |
| 88 | if ($[0] === Symbol.for("react.memo_cache_sentinel")) { |
| 89 | t1 = createAllTimeStatsPromise(); |
| 90 | $[0] = t1; |
| 91 | } else { |
| 92 | t1 = $[0]; |
| 93 | } |
| 94 | const allTimePromise = t1; |
| 95 | let t2; |
| 96 | if ($[1] === Symbol.for("react.memo_cache_sentinel")) { |
| 97 | t2 = <Box marginTop={1}><Spinner /><Text> Loading your Claude Code stats…</Text></Box>; |
| 98 | $[1] = t2; |
| 99 | } else { |
| 100 | t2 = $[1]; |
| 101 | } |
| 102 | let t3; |
| 103 | if ($[2] !== onClose) { |
| 104 | t3 = <Suspense fallback={t2}><StatsContent allTimePromise={allTimePromise} onClose={onClose} /></Suspense>; |
| 105 | $[2] = onClose; |
| 106 | $[3] = t3; |
| 107 | } else { |
| 108 | t3 = $[3]; |
| 109 | } |
| 110 | return t3; |
| 111 | } |
| 112 | type StatsContentProps = { |
| 113 | allTimePromise: Promise<StatsResult>; |
| 114 | onClose: Props['onClose']; |
nothing calls this directly
no test coverage detected