"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parentComponent = exports.parentClass = void 0;
const component_1 = require("./component");
const parentElement_1 = require("./platform/web/parentElement");
function parentClass() {
    class Parent extends component_1.Component {
        constructor($props, $system) {
            super($props, $system);
            const $element = (0, parentElement_1.default)($system);
            this.$element = $element;
            this.$primitive = false;
        }
    }
    return Parent;
}
exports.parentClass = parentClass;
function parentComponent($props, $system) {
    const Parent = parentClass();
    const component = new Parent($props, $system);
    return component;
}
exports.parentComponent = parentComponent;
//# sourceMappingURL=createParent.js.map