"use strict";
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var react_1 = __importDefault(require("react"));
var Box_1 = __importDefault(require("@mui/material/Box"));
var colors_1 = require("../../base/colors");
var baseStyles = {
    height: "4px",
    width: "32px",
    marginRight: "8px",
};
var GrayBox = function () { return (react_1.default.createElement(Box_1.default, { sx: __assign(__assign({}, baseStyles), { backgroundColor: colors_1.grey.light }) })); };
var RedBox = function () { return react_1.default.createElement(Box_1.default, { sx: __assign(__assign({}, baseStyles), { backgroundColor: colors_1.red.light }) }); };
var YellowBox = function () { return (react_1.default.createElement(Box_1.default, { sx: __assign(__assign({}, baseStyles), { backgroundColor: colors_1.yellow.light }) })); };
var GreenBox = function () { return (react_1.default.createElement(Box_1.default, { sx: __assign(__assign({}, baseStyles), { backgroundColor: colors_1.green.light }) })); };
function StrengthIndicator(_a) {
    var level = _a.level;
    var levels = null;
    if (level === 0) {
        levels = (react_1.default.createElement(react_1.default.Fragment, null,
            react_1.default.createElement(GrayBox, null),
            react_1.default.createElement(GrayBox, null),
            react_1.default.createElement(GrayBox, null)));
    }
    else if (level === 1) {
        levels = (react_1.default.createElement(react_1.default.Fragment, null,
            react_1.default.createElement(RedBox, null),
            react_1.default.createElement(GrayBox, null),
            react_1.default.createElement(GrayBox, null)));
    }
    else if (level === 2) {
        levels = (react_1.default.createElement(react_1.default.Fragment, null,
            react_1.default.createElement(YellowBox, null),
            react_1.default.createElement(YellowBox, null),
            react_1.default.createElement(GrayBox, null)));
    }
    else if (level >= 3) {
        levels = (react_1.default.createElement(react_1.default.Fragment, null,
            react_1.default.createElement(GreenBox, null),
            react_1.default.createElement(GreenBox, null),
            react_1.default.createElement(GreenBox, null)));
    }
    return (react_1.default.createElement(Box_1.default, { display: "flex", flexDirection: "row" }, levels));
}
exports.default = StrengthIndicator;
//# sourceMappingURL=StrengthIndicator.js.map