"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 elements_1 = require("@joincivil/elements");
exports.StoryNewsroomStatusStyled = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  font-family: ", ";\n  font-size: 13px;\n  font-weight: 600;\n  line-height: 16px;\n  margin-bottom: 7px;\n\n  a {\n    align-items: center;\n    color: ", ";\n    cursor: pointer;\n    display: flex;\n    transition: color 0.2s ease;\n\n    &:hover {\n      color: ", ";\n    }\n  }\n\n  svg {\n    margin-left: 5px;\n  }\n"], ["\n  font-family: ", ";\n  font-size: 13px;\n  font-weight: 600;\n  line-height: 16px;\n  margin-bottom: 7px;\n\n  a {\n    align-items: center;\n    color: ", ";\n    cursor: pointer;\n    display: flex;\n    transition: color 0.2s ease;\n\n    &:hover {\n      color: ", ";\n    }\n  }\n\n  svg {\n    margin-left: 5px;\n  }\n"])), elements_1.fonts.SANS_SERIF, elements_1.colors.primary.BLACK, elements_1.colors.accent.CIVIL_BLUE);
exports.StoryNewsroomStatus = function (props) {
    if (props.handleOpenNewsroom) {
        return (React.createElement(exports.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(exports.StoryNewsroomStatusStyled, null,
        props.newsroomName,
        props.activeChallenge ? React.createElement(elements_1.ChallengeMarkIcon, { width: 18, height: 18 }) : React.createElement(elements_1.TrustMarkIcon, { width: 18, height: 18 })));
};
var templateObject_1;
//# sourceMappingURL=StoryNewsroomStatus.js.map