"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getChannelMode = void 0;
function getChannelMode(finalizesAt, now) {
    if (finalizesAt == 0) {
        return 'Open';
    }
    else if (finalizesAt <= now) {
        return 'Finalized';
    }
    else {
        return 'Challenge';
    }
}
exports.getChannelMode = getChannelMode;
//# sourceMappingURL=channel-mode.js.map