"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 ApplicationPhaseStatusLabels_1 = require("../ApplicationPhaseStatusLabels");
var ListingPhaseLabel = function (props) {
    var isInApplication = props.isInApplication, inChallengeCommitVotePhase = props.inChallengeCommitVotePhase, isInAppealChallengeCommitPhase = props.isInAppealChallengeCommitPhase, inChallengeRevealPhase = props.inChallengeRevealPhase, isInAppealChallengeRevealPhase = props.isInAppealChallengeRevealPhase, isAwaitingAppealRequest = props.isAwaitingAppealRequest, canBeWhitelisted = props.canBeWhitelisted, canResolveChallenge = props.canResolveChallenge, canListingAppealBeResolved = props.canListingAppealBeResolved, canListingAppealChallengeBeResolved = props.canListingAppealChallengeBeResolved, isAwaitingAppealJudgement = props.isAwaitingAppealJudgement, isAwaitingAppealChallenge = props.isAwaitingAppealChallenge;
    if (isInApplication) {
        return React.createElement(ApplicationPhaseStatusLabels_1.AwaitingApprovalStatusLabel, null);
    }
    else if (inChallengeCommitVotePhase || isInAppealChallengeCommitPhase) {
        return React.createElement(ApplicationPhaseStatusLabels_1.CommitVoteStatusLabel, null);
    }
    else if (inChallengeRevealPhase || isInAppealChallengeRevealPhase) {
        return React.createElement(ApplicationPhaseStatusLabels_1.RevealVoteStatusLabel, null);
    }
    else if (isAwaitingAppealRequest) {
        return React.createElement(ApplicationPhaseStatusLabels_1.AwaitingAppealRequestLabel, null);
    }
    else if (canBeWhitelisted ||
        canResolveChallenge ||
        canListingAppealChallengeBeResolved ||
        canListingAppealBeResolved) {
        return React.createElement(ApplicationPhaseStatusLabels_1.ReadyToCompleteStatusLabel, null);
    }
    else if (isAwaitingAppealJudgement) {
        return React.createElement(ApplicationPhaseStatusLabels_1.AwaitingDecisionStatusLabel, null);
    }
    else if (isAwaitingAppealChallenge) {
        return React.createElement(ApplicationPhaseStatusLabels_1.AwaitingAppealChallengeStatusLabel, null);
    }
    return null;
};
exports.default = ListingPhaseLabel;
//# sourceMappingURL=ListingPhaseLabel.js.map