MCPcopy Index your code
hub / github.com/codeaashu/claude-code / Stats

Function Stats

src/components/Stats.tsx:82–111  ·  view source on GitHub ↗
(t0)

Source from the content-addressed store, hash-verified

80 });
81}
82export 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}
112type StatsContentProps = {
113 allTimePromise: Promise<StatsResult>;
114 onClose: Props['onClose'];

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected