(data: PromptOverlayData | null)
| 61 | * No-op outside the provider (non-fullscreen renders inline instead). |
| 62 | */ |
| 63 | export 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. |
no test coverage detected