"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.componentFromSpecId = void 0;
const componentClassFromSpecId_1 = require("./componentClassFromSpecId");
function componentFromSpecId(system, id, props, sub_component_map = {}) {
    const Class = (0, componentClassFromSpecId_1.componentClassFromSpecId)(system, id, {}, sub_component_map);
    const component = new Class(props, system);
    return component;
}
exports.componentFromSpecId = componentFromSpecId;
//# sourceMappingURL=componentFromSpecId.js.map