"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;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var Button_1 = require("../Button");
var icons_1 = require("../icons");
var styledComponents_1 = require("./styledComponents");
var textComponents_1 = require("./textComponents");
exports.InsufficientCVL = function (props) {
    var buyCVLURL = props.buyCVLURL;
    var buyBtnProps = { href: buyCVLURL };
    if (buyCVLURL.charAt(0) === "/") {
        buyBtnProps = { to: buyCVLURL };
    }
    return (React.createElement(styledComponents_1.StyledMessageWithIconContainer, null,
        React.createElement(styledComponents_1.StyledMessageIconContainer, null,
            React.createElement(icons_1.WarningIcon, null)),
        React.createElement(styledComponents_1.StyledErrorMessage, null, props.children),
        props.buyCVLURL && (React.createElement(styledComponents_1.StyledBuyCVLButtonContainer, null,
            React.createElement(Button_1.InvertedButton, __assign({}, buyBtnProps, { size: Button_1.buttonSizes.MEDIUM }), "Buy CVL")))));
};
exports.InsufficientCVLForChallenge = function (props) {
    return (React.createElement(exports.InsufficientCVL, { buyCVLURL: props.buyCVLURL },
        React.createElement(textComponents_1.InsufficientCVLForChallengeText, { minDeposit: props.minDeposit })));
};
exports.InsufficientCVLForAppeal = function (props) {
    return (React.createElement(exports.InsufficientCVL, { buyCVLURL: props.buyCVLURL },
        React.createElement(textComponents_1.InsufficientCVLForAppealText, { appealFee: props.appealFee })));
};
exports.InsufficientCVLForAppealChallenge = function (props) {
    return (React.createElement(exports.InsufficientCVL, { buyCVLURL: props.buyCVLURL },
        React.createElement(textComponents_1.InsufficientCVLForAppealChallengeText, { appealFee: props.appealFee })));
};
//# sourceMappingURL=InsufficientCVL.js.map