"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.EditorPortal = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const Portal_1 = require("../../../components/Portal");
const context_1 = require("../context");
const EditorPortal = ({ children }) => {
    const state = (0, context_1.usePeritext)();
    return React.createElement(Portal_1.Portal, { parent: state.portalEl }, children);
};
exports.EditorPortal = EditorPortal;
//# sourceMappingURL=EditorPortal.js.map