"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.StatusChips = void 0;
var react_1 = __importDefault(require("react"));
var classnames_1 = __importDefault(require("classnames"));
var ui_i18n_1 = __importDefault(require("ui-i18n"));
var Chip_1 = __importDefault(require("@mui/material/Chip"));
var StatusChips_module_css_1 = __importDefault(require("./StatusChips.module.css"));
var StatusChips = function (_a) {
    var showUpdatedChip = _a.showUpdatedChip, showRejectedChip = _a.showRejectedChip;
    if (!showUpdatedChip && !showRejectedChip) {
        return null;
    }
    var label = showUpdatedChip ? ui_i18n_1.default.text('Updated') : ui_i18n_1.default.text('Rejected');
    var chipClass = showUpdatedChip ? StatusChips_module_css_1.default.updatedChip : StatusChips_module_css_1.default.rejectedChip;
    return (react_1.default.createElement(Chip_1.default, { label: label, size: "small", color: "primary", variant: "outlined", className: (0, classnames_1.default)(StatusChips_module_css_1.default.statusChip, chipClass), "data-testid": "status-chips" }));
};
exports.StatusChips = StatusChips;
