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

Function TranscriptModeFooter

src/screens/REPL.tsx:321–362  ·  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

319 * Must be rendered inside KeybindingSetup to access keybinding context.
320 */
321function TranscriptModeFooter(t0) {
322 const $ = _c(9);
323 const {
324 showAllInTranscript,
325 virtualScroll,
326 searchBadge,
327 suppressShowAll: t1,
328 status
329 } = t0;
330 const suppressShowAll = t1 === undefined ? false : t1;
331 const toggleShortcut = useShortcutDisplay("app:toggleTranscript", "Global", "ctrl+o");
332 const showAllShortcut = useShortcutDisplay("transcript:toggleShowAll", "Transcript", "ctrl+e");
333 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"}`;
334 let t3;
335 if ($[0] !== t2 || $[1] !== toggleShortcut) {
336 t3 = <Text dimColor={true}>Showing detailed transcript · {toggleShortcut} to toggle{t2}</Text>;
337 $[0] = t2;
338 $[1] = toggleShortcut;
339 $[2] = t3;
340 } else {
341 t3 = $[2];
342 }
343 let t4;
344 if ($[3] !== searchBadge || $[4] !== status) {
345 t4 = status ? <><Box flexGrow={1} /><Text>{status} </Text></> : searchBadge ? <><Box flexGrow={1} /><Text dimColor={true}>{searchBadge.current}/{searchBadge.count}{" "}</Text></> : null;
346 $[3] = searchBadge;
347 $[4] = status;
348 $[5] = t4;
349 } else {
350 t4 = $[5];
351 }
352 let t5;
353 if ($[6] !== t3 || $[7] !== t4) {
354 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>;
355 $[6] = t3;
356 $[7] = t4;
357 $[8] = t5;
358 } else {
359 t5 = $[8];
360 }
361 return t5;
362}
363
364/** less-style / bar. 1-row, same border-top styling as TranscriptModeFooter
365 * 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