"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ElementFactory = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
class ElementFactory {
    component;
    props;
    constructor(component, props) {
        this.component = component;
        this.props = props;
    }
    create() {
        return react_1.default.createElement(this.component, this.props);
    }
}
exports.ElementFactory = ElementFactory;
//# sourceMappingURL=ElementFactory.js.map