import { dim, glyph, gray, green, red, yellow } from "../ui/index.js";
export function renderCheck(check) {
    const mark = check.ok === undefined
        ? gray(glyph.bullet())
        : check.ok
            ? green(glyph.tick())
            : red(glyph.cross());
    const detail = check.detail !== undefined ? ` ${dim(check.detail)}` : "";
    const hint = check.ok === false && check.hint !== undefined
        ? `\n    ${yellow(glyph.arrow())} ${check.hint}`
        : "";
    return `${mark} ${check.label}${detail}${hint}`;
}
/** A yellow advisory line (non-fatal warnings). */
export function warningLine(message) {
    return `${yellow(glyph.warn())} ${message}`;
}
