MCPcopy Create free account
hub / github.com/Noumena-Network/code / SuggestionsOverlay

Function SuggestionsOverlay

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

Source from the content-addressed store, hash-verified

599// flex-end here: they would create empty padding rows that shift visible
600// items down into the prompt area when the list has fewer items than max.
601function SuggestionsOverlay() {
602 const $ = _c(4);
603 const data = usePromptOverlay();
604 if (!data || data.suggestions.length === 0) {
605 return null;
606 }
607 let t0;
608 if ($[0] !== data.maxColumnWidth || $[1] !== data.selectedSuggestion || $[2] !== data.suggestions) {
609 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>;
610 $[0] = data.maxColumnWidth;
611 $[1] = data.selectedSuggestion;
612 $[2] = data.suggestions;
613 $[3] = t0;
614 } else {
615 t0 = $[3];
616 }
617 return t0;
618}
619
620// Dialog portaled from PromptInput (AutoModeOptInDialog) — same clip-escape
621// 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