()
| 68 | * Access the full OpenUI context. Throws if used outside a <Renderer />. |
| 69 | */ |
| 70 | export function useOpenUI(): OpenUIContextValue { |
| 71 | const ctx = useContext(OpenUIContext); |
| 72 | if (!ctx) { |
| 73 | throw new Error("useOpenUI must be used within a <Renderer /> component."); |
| 74 | } |
| 75 | return ctx; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * Get the renderNode function for rendering nested component values. |
no outgoing calls
no test coverage detected