"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
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 styled_components_1 = __importDefault(require("styled-components"));
var Button_1 = require("../Button");
var styledComponents_1 = require("../ListingSummary/styledComponents");
var img_default_newsroom_2x_png_1 = __importDefault(require("../images/img-default-newsroom@2x.png"));
var DashboardStyledComponents_1 = require("./DashboardStyledComponents");
var StyledDashboardActivityItemIcon = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  margin-right: 16px;\n  width: 50px;\n"], ["\n  margin-right: 16px;\n  width: 50px;\n"])));
var StyledDashboardActivityItemAction = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n  text-align: right;\n"], ["\n  text-align: right;\n"])));
var StyledButtonHelperText = styled_components_1.default.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n  font-weight: normal;\n  font-size: 14px;\n  line-height: 18px;\n  margin: 0 0 10px;\n"], ["\n  font-weight: normal;\n  font-size: 14px;\n  line-height: 18px;\n  margin: 0 0 10px;\n"])));
exports.DashboardActivityItem = function (props) {
    return (React.createElement(DashboardStyledComponents_1.StyledDashboardActivityItem, null,
        React.createElement(StyledDashboardActivityItemIcon, null, props.charter && props.charter.logoUrl && (React.createElement(styledComponents_1.SmallNewsroomIcon, null,
            React.createElement("img", { src: props.charter.logoUrl, onError: function (e) {
                    e.target.src = img_default_newsroom_2x_png_1.default;
                } })))),
        React.createElement(DashboardStyledComponents_1.StyledDashboardActivityItemDetails, null,
            React.createElement(DashboardStyledComponents_1.StyledNewsroomName, null, props.newsroomName),
            props.children),
        React.createElement(StyledDashboardActivityItemAction, null,
            React.createElement(StyledButtonHelperText, null, props.buttonHelperText),
            React.createElement(Button_1.InvertedButton, { to: props.listingDetailURL, size: Button_1.buttonSizes.SMALL }, props.buttonText))));
};
var templateObject_1, templateObject_2, templateObject_3;
//# sourceMappingURL=DashboardActivityItem.js.map