"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.parentClass = parentClass;
exports.parentComponent = parentComponent;
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.parentElement)($system);
            this.$element = $element;
            this.$primitive = false;
        }
    }
    return Parent;
}
function parentComponent($props, $system) {
    const Parent = parentClass();
    const component = new Parent($props, $system);
    return component;
}
//# sourceMappingURL=createParent.js.map