"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 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 DashboardActivityItemTitle_1 = __importDefault(require("./DashboardActivityItemTitle"));
exports.DashboardActivityItemTask = function (props) {
    var logoUrl = props.logoUrl;
    return (React.createElement(DashboardStyledComponents_1.StyledDashboardActivityItem, null,
        React.createElement(DashboardStyledComponents_1.StyledDashboardActivityItemIcon, null, logoUrl && (React.createElement(styledComponents_1.SmallNewsroomIcon, null,
            React.createElement("img", { src: logoUrl, onError: function (e) {
                    e.target.src = img_default_newsroom_2x_png_1.default;
                } })))),
        React.createElement(DashboardStyledComponents_1.StyledDashboardActivityItemDetails, null,
            React.createElement(DashboardActivityItemTitle_1.default, { title: props.title, viewDetailURL: props.viewDetailURL }),
            props.children)));
};
//# sourceMappingURL=DashboardActivityItemTask.js.map