"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hasFailure = hasFailure;
exports.renderDoctorReport = renderDoctorReport;
function hasFailure(checks) {
    return checks.some((check) => check.status === "fail");
}
function renderDoctorReport(checks) {
    return checks
        .map((check) => `${renderIcon(check.status)} ${check.name}: ${check.message}`)
        .join("\n");
}
function renderIcon(status) {
    switch (status) {
        case "ok":
            return "[ok]";
        case "warning":
            return "[warn]";
        case "fail":
            return "[fail]";
    }
}
