import * as React from 'react';
import { EntityListActionButtons } from '../Buttons/EntityListActionButtons';
import { SummaryRowItem } from './SummaryRowItem';
export class ModuleDetail extends React.Component {
    render() {
        let summaryItems = [];
        this.props.showBold
            ? summaryItems.push(React.createElement("b", null, this.props.item1))
            : summaryItems.push(React.createElement("i", null, this.props.item1));
        summaryItems.push(React.createElement("i", null, this.props.item2));
        summaryItems.push(React.createElement(EntityListActionButtons, { justifyContent: "start", confirmDeleteAction: this.props.onDelete, showEdit: this.props.showEdit, editClick: () => this.props.onEdit(), shareClick: (config) => this.props.onShare(config), showShare: this.props.showShare, entityType: this.props.moduleInfo.FriendlyName, accessLevel: this.props.accessLevel }));
        return React.createElement(SummaryRowItem, { SummaryItems: summaryItems });
    }
}
