"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.FILE_INSTANCE_TYPE = "FileComponent";
/**
 * identifies a component as a File
 *
 * @param component to be tested
 */
function isFile(component) {
    return component !== undefined &&
        component.instanceType === exports.FILE_INSTANCE_TYPE;
}
exports.isFile = isFile;
exports.default = (props) => {
    const componentProps = {
        infrastructureType: types_1.default.INFRASTRUCTURE_TYPE_COMPONENT,
        instanceType: exports.FILE_INSTANCE_TYPE,
        instanceId: props.id
    };
    const fileProps = {};
    return Object.assign(props, componentProps, fileProps);
};
//# sourceMappingURL=file-component.js.map