"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const types_1 = __importDefault(require("../types"));
exports.DATALAYER_INSTANCE_TYPE = "DataLayerComponent";
/**
 * identifies a component as a DataLayer
 *
 * @param component to be tested
 */
function isDataLayer(component) {
    return component !== undefined &&
        component.instanceType === exports.DATALAYER_INSTANCE_TYPE;
}
exports.isDataLayer = isDataLayer;
exports.default = (props) => {
    const componentProps = {
        infrastructureType: types_1.default.INFRASTRUCTURE_TYPE_COMPONENT,
        instanceType: exports.DATALAYER_INSTANCE_TYPE,
        instanceId: "props.name" //TODO
    };
    const datalayerProps = {};
    return Object.assign(props, componentProps, datalayerProps);
};
//# sourceMappingURL=template-component.js.map