"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 styledComponents_1 = require("./styledComponents");
var ChallengeOrAppealStatementSummary = function (props) {
    var challengeID = props.challengeID, challengeStatementSummary = props.challengeStatementSummary, appealStatementSummary = props.appealStatementSummary, appealChallengeID = props.appealChallengeID, appealChallengeStatementSummary = props.appealChallengeStatementSummary, inChallengeCommitVotePhase = props.inChallengeCommitVotePhase, inChallengeRevealPhase = props.inChallengeRevealPhase, isAwaitingAppealJudgement = props.isAwaitingAppealJudgement, isInAppealChallengeCommitPhase = props.isInAppealChallengeCommitPhase, isInAppealChallengeRevealPhase = props.isInAppealChallengeRevealPhase;
    if (isInAppealChallengeCommitPhase || (isInAppealChallengeRevealPhase && appealChallengeStatementSummary)) {
        var appealChallengeIDDisplay = appealChallengeID ? "#" + appealChallengeID : "";
        return (React.createElement(styledComponents_1.StyledListingChallengeOrAppealStatement, null,
            React.createElement("b", null,
                "Challenge ",
                appealChallengeIDDisplay,
                " Summary"),
            React.createElement("br", null),
            appealChallengeStatementSummary));
    }
    else if (isAwaitingAppealJudgement && appealStatementSummary) {
        return (React.createElement(styledComponents_1.StyledListingChallengeOrAppealStatement, null,
            React.createElement("b", null, "Appeal Summary"),
            React.createElement("br", null),
            appealStatementSummary));
    }
    else if (inChallengeCommitVotePhase || (inChallengeRevealPhase && challengeStatementSummary)) {
        var challengeIDDisplay = challengeID ? "#" + challengeID : "";
        return (React.createElement(styledComponents_1.StyledListingChallengeOrAppealStatement, null,
            React.createElement("b", null,
                "Challenge ",
                challengeIDDisplay,
                " Summary"),
            React.createElement("br", null),
            challengeStatementSummary));
    }
    return null;
};
exports.default = ChallengeOrAppealStatementSummary;
//# sourceMappingURL=ChallengeOrAppealStatementSummary.js.map