({
children,
container,
}: {
children: JSX.Element
container: HTMLElement
})
| 118 | |
| 119 | // Simple portal component for Preact |
| 120 | function Portal({ |
| 121 | children, |
| 122 | container, |
| 123 | }: { |
| 124 | children: JSX.Element |
| 125 | container: HTMLElement |
| 126 | }) { |
| 127 | useEffect(() => { |
| 128 | render(children, container) |
| 129 | return () => { |
| 130 | render(null, container) |
| 131 | } |
| 132 | }, [children, container]) |
| 133 | |
| 134 | return null |
| 135 | } |
| 136 | |
| 137 | const convertRender = ( |
| 138 | Component: PluginRender, |
nothing calls this directly
no outgoing calls
no test coverage detected