MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / buildBorderText

Function buildBorderText

src/components/PromptInput/PromptInput.tsx:2633–2648  ·  view source on GitHub ↗
(
  showFastIcon: boolean,
  showFastIconHint: boolean,
  fastModeCooldown: boolean,
)

Source from the content-addressed store, hash-verified

2631}
2632
2633function buildBorderText(
2634 showFastIcon: boolean,
2635 showFastIconHint: boolean,
2636 fastModeCooldown: boolean,
2637): BorderTextOptions | undefined {
2638 if (!showFastIcon) return undefined;
2639 const fastSeg = showFastIconHint
2640 ? `${getFastIconString(true, fastModeCooldown)} ${chalk.dim('/fast')}`
2641 : getFastIconString(true, fastModeCooldown);
2642 return {
2643 content: ` ${fastSeg} `,
2644 position: 'top',
2645 align: 'end',
2646 offset: 0,
2647 };
2648}
2649
2650export default React.memo(PromptInput);

Callers 1

PromptInputFunction · 0.85

Calls 1

getFastIconStringFunction · 0.85

Tested by

no test coverage detected