MCPcopy
hub / github.com/claude-code-best/claude-code / useSetPromptOverlay

Function useSetPromptOverlay

src/context/promptOverlayContext.tsx:63–70  ·  view source on GitHub ↗
(data: PromptOverlayData | null)

Source from the content-addressed store, hash-verified

61 * No-op outside the provider (non-fullscreen renders inline instead).
62 */
63export function useSetPromptOverlay(data: PromptOverlayData | null): void {
64 const set = useContext(SetContext);
65 useEffect(() => {
66 if (!set) return;
67 set(data);
68 return () => set(null);
69 }, [set, data]);
70}
71
72/**
73 * Register a dialog node to float above the prompt. Clears on unmount.

Callers 1

PromptInputFooterFunction · 0.85

Calls 1

setFunction · 0.70

Tested by

no test coverage detected