"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;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var StoryFeedStyledComponents_1 = require("./StoryFeedStyledComponents");
var elements_1 = require("@joincivil/elements");
exports.StoryNewsroomStatus = function (props) {
    if (props.handleOpenNewsroom) {
        return (React.createElement(StoryFeedStyledComponents_1.StoryNewsroomStatusStyled, null,
            React.createElement("a", { onClick: props.handleOpenNewsroom },
                props.newsroomName,
                props.activeChallenge ? (React.createElement(elements_1.ChallengeMarkIcon, { width: 18, height: 18 })) : (React.createElement(elements_1.TrustMarkIcon, { width: 18, height: 18 })))));
    }
    return (React.createElement(StoryFeedStyledComponents_1.StoryNewsroomStatusStyled, null,
        props.newsroomName,
        props.activeChallenge ? React.createElement(elements_1.ChallengeMarkIcon, { width: 18, height: 18 }) : React.createElement(elements_1.TrustMarkIcon, { width: 18, height: 18 })));
};
//# sourceMappingURL=StoryNewsroomStatus.js.map