"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
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 utils_1 = require("@joincivil/utils");
var img_metamask_networkswitch_2x_png_1 = __importDefault(require("../images/img-metamask-networkswitch@2x.png"));
var Modal_1 = require("../Modal");
var styledComponents_1 = require("./styledComponents");
exports.WrongNetworkComponent = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.StyledLargeModalText, null,
            React.createElement("b", null, "Change your network."),
            " Looks like you\u2019re using an unsupported Ethereum network. Make sure you're using the",
            " ",
            React.createElement("b", null, props.requiredNetworkNiceName),
            "."),
        React.createElement(styledComponents_1.StyledSmallModalText, null,
            React.createElement("a", { href: utils_1.urlConstants.FAQ_SWITCH_NETWORKS, target: "_blank" }, "Read this tutorial"),
            " ",
            "to switch networks in MetaMask ",
            React.createElement(styledComponents_1.MetaMaskIcon, null)),
        React.createElement(styledComponents_1.MetaMaskMockImage, { src: img_metamask_networkswitch_2x_png_1.default })));
};
exports.WrongNetworkModal = function (props) {
    return (React.createElement(Modal_1.Modal, { width: 558 },
        React.createElement(exports.WrongNetworkComponent, __assign({}, props))));
};
//# sourceMappingURL=WrongNetwork.js.map