"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TenantLabel = void 0;
var react_1 = __importDefault(require("react"));
var Typography_1 = __importDefault(require("@mui/material/Typography"));
var classnames_1 = __importDefault(require("classnames"));
var Tenant_1 = __importDefault(require("../icons/Tenant"));
var MdmModuleContext_1 = require("../contexts/MdmModuleContext");
var styles_1 = require("./styles");
var TenantLabel = function (_a) {
    var className = _a.className;
    var styles = (0, styles_1.useStyles)();
    var customerTenantLabel = (0, MdmModuleContext_1.useMdmTenantName)();
    var environmentName = (0, MdmModuleContext_1.useMdmEnvironment)();
    var tenantLabelWithEnv = "".concat(customerTenantLabel).concat(environmentName ? ' - ' + environmentName.toUpperCase() : '');
    return (react_1.default.createElement("div", { className: (0, classnames_1.default)(styles.labelWrapper, className) },
        react_1.default.createElement(Tenant_1.default, { className: styles.tenantIcon, "data-reltio-id": "reltio-tenant-icon" }),
        react_1.default.createElement(Typography_1.default, { className: styles.tenantLabel }, tenantLabelWithEnv)));
};
exports.TenantLabel = TenantLabel;
