"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 styledComponents_1 = require("./styledComponents");
var textComponents_1 = require("./textComponents");
var QuestionToolTip_1 = require("../QuestionToolTip");
exports.ChallengePhaseDetail = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.MetaRow, null,
            React.createElement(styledComponents_1.MetaItem, null,
                React.createElement(styledComponents_1.MetaItemLabel, null,
                    "Reward Pool",
                    React.createElement(QuestionToolTip_1.QuestionToolTip, { explainerText: React.createElement(textComponents_1.RewardPoolToolTipText, { dispensationPct: props.dispensationPct }), positionBottom: true })),
                React.createElement(styledComponents_1.MetaItemValue, null, props.rewardPool))),
        React.createElement(styledComponents_1.MetaRow, null,
            React.createElement(styledComponents_1.MetaItem, null,
                React.createElement(styledComponents_1.MetaItemLabel, null,
                    "Challenger Deposit",
                    React.createElement(QuestionToolTip_1.QuestionToolTip, { explainerText: React.createElement(textComponents_1.DepositsToolTipText, null), positionBottom: true })),
                React.createElement(styledComponents_1.MetaItemValue, null, props.stake)),
            React.createElement(styledComponents_1.MetaItem, null,
                React.createElement(styledComponents_1.MetaItemLabel, null,
                    "Newsroom Deposit",
                    React.createElement(QuestionToolTip_1.QuestionToolTip, { explainerText: React.createElement(textComponents_1.DepositsToolTipText, null), positionBottom: true })),
                React.createElement(styledComponents_1.MetaItemValue, null, props.stake))),
        React.createElement(styledComponents_1.MetaRow, null,
            React.createElement(styledComponents_1.MetaItem, null,
                React.createElement(styledComponents_1.MetaItemLabel, null, props.isViewingUserChallenger ? "You are the challenger" : "Challenger"),
                React.createElement(styledComponents_1.MetaItemValueEthAddress, null, utils_1.getFormattedEthAddress(props.challenger))))));
};
//# sourceMappingURL=ChallengePhaseDetail.js.map