"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 utils_1 = require("@joincivil/utils");
var icons_1 = require("../icons");
var Button_1 = require("../Button");
var DashboardStyledComponents_1 = require("./DashboardStyledComponents");
exports.NoNewsrooms = function (props) {
    var hasInProgressApplication = props.hasInProgressApplication, applyToRegistryURL = props.applyToRegistryURL;
    var hdrText = "You don't have any Newsrooms on the Registry";
    var copy = (React.createElement(React.Fragment, null,
        React.createElement("a", { href: utils_1.urlConstants.FAQ_APPLY_TO_REGISTRY_SECTION, target: "_blank" }, "Learn how to join as a Newsroom"),
        " ",
        "or apply to our network of community-approved Newsrooms on Civil."));
    var buttonText = "Apply to the Registry";
    if (hasInProgressApplication) {
        hdrText = "You have an application in progress";
        copy = React.createElement(React.Fragment, null);
        buttonText = "Continue your application";
    }
    return (React.createElement(DashboardStyledComponents_1.StyledDashboardNoContent, null,
        React.createElement(icons_1.DashboardNewsroomApplicationIcon, null),
        React.createElement(DashboardStyledComponents_1.StyledDashboardNoContentHdr, null, hdrText),
        React.createElement(DashboardStyledComponents_1.StyledDashboardNoContentCopy, null, copy),
        React.createElement(DashboardStyledComponents_1.StyledDashboardNoContentButtonContainer, null,
            React.createElement(Button_1.InvertedButton, { to: applyToRegistryURL }, buttonText))));
};
//# sourceMappingURL=NoNewsrooms.js.map