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

Function SuggestionsOverlay

src/components/FullscreenLayout.tsx:599–616  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

597// flex-end here: they would create empty padding rows that shift visible
598// items down into the prompt area when the list has fewer items than max.
599function SuggestionsOverlay() {
600 const $ = _c(4);
601 const data = usePromptOverlay();
602 if (!data || data.suggestions.length === 0) {
603 return null;
604 }
605 let t0;
606 if ($[0] !== data.maxColumnWidth || $[1] !== data.selectedSuggestion || $[2] !== data.suggestions) {
607 t0 = <Box position="absolute" bottom="100%" left={0} right={0} paddingX={2} paddingTop={1} flexDirection="column" opaque={true}><PromptInputFooterSuggestions suggestions={data.suggestions} selectedSuggestion={data.selectedSuggestion} maxColumnWidth={data.maxColumnWidth} overlay={true} /></Box>;
608 $[0] = data.maxColumnWidth;
609 $[1] = data.selectedSuggestion;
610 $[2] = data.suggestions;
611 $[3] = t0;
612 } else {
613 t0 = $[3];
614 }
615 return t0;
616}
617
618// Dialog portaled from PromptInput (AutoModeOptInDialog) — same clip-escape
619// pattern as SuggestionsOverlay. Renders later in tree order so it paints

Callers

nothing calls this directly

Calls 1

usePromptOverlayFunction · 0.85

Tested by

no test coverage detected