1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.Portal = void 0;
|
7 |
|
8 | var _compat = require("preact/compat");
|
9 |
|
10 | const Portal = ({
|
11 | into,
|
12 | children
|
13 | }) => {
|
14 | const container = document.querySelector(into);
|
15 | return (0, _compat.createPortal)(children, container);
|
16 | };
|
17 |
|
18 | exports.Portal = Portal; |
\ | No newline at end of file |