"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var img_default_newsroom_2x_png_1 = __importDefault(require("../images/img-default-newsroom@2x.png"));
var styledComponents_1 = require("./styledComponents");
var NewsroomTagline_1 = __importDefault(require("./NewsroomTagline"));
var NewsroomInfo = function (props) {
    var description = props.charter && props.charter.tagline;
    var logoURL = props.charter && props.charter.logoUrl;
    return (React.createElement(styledComponents_1.StyledListingSummaryTop, null,
        React.createElement(styledComponents_1.NewsroomIcon, null, logoURL && (React.createElement("img", { src: logoURL, onError: function (e) {
                e.target.src = img_default_newsroom_2x_png_1.default;
            } }))),
        React.createElement("div", null,
            React.createElement(styledComponents_1.StyledListingSummaryNewsroomName, null, props.name),
            React.createElement(NewsroomTagline_1.default, { description: description }))));
};
exports.default = NewsroomInfo;
//# sourceMappingURL=NewsroomInfo.js.map