MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / TranscriptModeFooter

Function TranscriptModeFooter

source code/screens/REPL.tsx:323–364  ·  view source on GitHub ↗

* Small component to display transcript mode footer with dynamic keybinding. * Must be rendered inside KeybindingSetup to access keybinding context.

(t0)

Source from the content-addressed store, hash-verified

321 * Must be rendered inside KeybindingSetup to access keybinding context.
322 */
323function TranscriptModeFooter(t0) {
324 const $ = _c(9);
325 const {
326 showAllInTranscript,
327 virtualScroll,
328 searchBadge,
329 suppressShowAll: t1,
330 status
331 } = t0;
332 const suppressShowAll = t1 === undefined ? false : t1;
333 const toggleShortcut = useShortcutDisplay("app:toggleTranscript", "Global", "ctrl+o");
334 const showAllShortcut = useShortcutDisplay("transcript:toggleShowAll", "Transcript", "ctrl+e");
335 const t2 = searchBadge ? " \xB7 n/N to navigate" : virtualScroll ? ` · ${figures.arrowUp}${figures.arrowDown} scroll · home/end top/bottom` : suppressShowAll ? "" : ` · ${showAllShortcut} to ${showAllInTranscript ? "collapse" : "show all"}`;
336 let t3;
337 if ($[0] !== t2 || $[1] !== toggleShortcut) {
338 t3 = <Text dimColor={true}>Showing detailed transcript · {toggleShortcut} to toggle{t2}</Text>;
339 $[0] = t2;
340 $[1] = toggleShortcut;
341 $[2] = t3;
342 } else {
343 t3 = $[2];
344 }
345 let t4;
346 if ($[3] !== searchBadge || $[4] !== status) {
347 t4 = status ? <><Box flexGrow={1} /><Text>{status} </Text></> : searchBadge ? <><Box flexGrow={1} /><Text dimColor={true}>{searchBadge.current}/{searchBadge.count}{" "}</Text></> : null;
348 $[3] = searchBadge;
349 $[4] = status;
350 $[5] = t4;
351 } else {
352 t4 = $[5];
353 }
354 let t5;
355 if ($[6] !== t3 || $[7] !== t4) {
356 t5 = <Box noSelect={true} alignItems="center" alignSelf="center" borderTopDimColor={true} borderBottom={false} borderLeft={false} borderRight={false} borderStyle="single" marginTop={1} paddingLeft={2} width="100%">{t3}{t4}</Box>;
357 $[6] = t3;
358 $[7] = t4;
359 $[8] = t5;
360 } else {
361 t5 = $[8];
362 }
363 return t5;
364}
365
366/** less-style / bar. 1-row, same border-top styling as TranscriptModeFooter
367 * so swapping them in the bottom slot doesn't shift ScrollBox height.

Callers

nothing calls this directly

Calls 1

useShortcutDisplayFunction · 0.85

Tested by

no test coverage detected