"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModuleHeader = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
/// <reference path="../../typings/.d.ts" />
const ButtonNew_1 = require("../Buttons/ButtonNew");
const SummaryRowItem_1 = require("./SummaryRowItem");
const ModuleProfile_1 = require("../ModuleProfile");
class ModuleHeader extends React.Component {
    render() {
        let summaryItems = [];
        let newButton = this.props.newButtonDisabled ? null : (React.createElement(ButtonNew_1.ButtonNew, { onClick: () => this.props.onNew(), tooltip: 'Create ' + this.props.newButtonTooltip, accessLevel: this.props.accessLevel }));
        summaryItems.push(React.createElement("b", null, React.createElement(ModuleProfile_1.ModuleProfile, { moduleInfo: this.props.moduleInfo })));
        summaryItems.push(this.props.moduleSummary);
        summaryItems.push(newButton);
        return React.createElement(SummaryRowItem_1.SummaryRowItem, { SummaryItems: summaryItems });
    }
}
exports.ModuleHeader = ModuleHeader;
