"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("classnames"),t=require("../../TextEndTruncated/TextEndTruncated.js"),a=require("../AppHeader.constants.js"),s=require("./AppBadge.scss.js"),n=require("../../../constants/appPackages.js");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=d(r);exports.AppBadge=function(r){var d=r.app,c=(null==d?void 0:d.package)||{},A=c.label,p=c.version,o=c.package_code_version||p;return A!==n.PACKAGE_LABELS.PROD&&(A&&n.TEXT_FOR_PACKAGE_LABELS[A]||o)?e.jsx(t.TextEndTruncated,{className:u.default(s.root,A===n.PACKAGE_LABELS.DEV&&s.dev,A===n.PACKAGE_LABELS.BETA&&s.beta),testId:a.AppHeaderTestIds.AppBadgeTestId,children:A?n.TEXT_FOR_PACKAGE_LABELS[A]:"v".concat(o)}):null};
//# sourceMappingURL=AppBadge.js.map
