"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 StoryRegistryDetails_1 = require("./StoryRegistryDetails");
var utils_1 = require("@joincivil/utils");
var icons_1 = require("../icons");
var StoryFeedStyledComponents_1 = require("./StoryFeedStyledComponents");
exports.StoryNewsroomDetails = function (props) {
    var newsroom = props.newsroom;
    return (React.createElement(React.Fragment, null,
        React.createElement(StoryFeedStyledComponents_1.StoryDetailsHeader, null,
            React.createElement(StoryFeedStyledComponents_1.StoryRegistryLabel, null,
                React.createElement(icons_1.CivilIcon, { width: 42, height: 11 }),
                " Registry"),
            React.createElement(StoryFeedStyledComponents_1.StoryDetailsFlex, null,
                React.createElement("div", null,
                    React.createElement(StoryFeedStyledComponents_1.StoryNewsroomName, null, newsroom.charter.name),
                    React.createElement(StoryFeedStyledComponents_1.StoryNewsroomURL, { href: newsroom.charter.newsroomUrl, target: "_blank" }, newsroom.charter.newsroomUrl)),
                props.activeChallenge ? (React.createElement(StoryFeedStyledComponents_1.RegistryStatusTag, { activeChallenge: true }, "Challenged")) : (React.createElement(StoryFeedStyledComponents_1.RegistryStatusTag, { activeChallenge: false }, "Approved")))),
        React.createElement(StoryFeedStyledComponents_1.StoryDetailsContent, null,
            React.createElement(StoryRegistryDetails_1.StoryRegistryDetails, { activeChallenge: props.activeChallenge }),
            React.createElement(StoryFeedStyledComponents_1.StoryNewsroomSection, null,
                React.createElement("h2", null, "About"),
                React.createElement("p", null, newsroom.charter.mission.purpose)),
            React.createElement(StoryFeedStyledComponents_1.StoryNewsroomSection, null,
                React.createElement("h3", null, "Smart Contract Address"),
                React.createElement(StoryFeedStyledComponents_1.StoryETHAddress, null, newsroom.contractAddress)),
            React.createElement(StoryFeedStyledComponents_1.StoryNewsroomSection, null,
                React.createElement("h3", null, "Public Wallet Address"),
                React.createElement(StoryFeedStyledComponents_1.StoryETHAddress, null, newsroom.multisigAddress))),
        React.createElement(StoryFeedStyledComponents_1.StoryDetailsFooter, null,
            React.createElement(StoryFeedStyledComponents_1.BlueLinkBtn, { href: utils_1.urlConstants.REGISTRY + "listing/" + newsroom.contractAddress, target: "_blank" }, "View on Civil Registry"))));
};
//# sourceMappingURL=StoryNewsroomDetails.js.map