"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const types_1 = require("../../types");
const TechnologyPreview_1 = require("../ui/TechnologyPreview");
const DeveloperPreview_1 = require("../ui/DeveloperPreview");
const NewFeatureSupportLevelBadge = ({ featureId, supportLevel, }) => {
    if (!(0, types_1.isPreviewSupportLevel)(supportLevel)) {
        return null;
    }
    const testId = `${featureId}-support-level`;
    return supportLevel === 'tech-preview' ? (react_1.default.createElement(TechnologyPreview_1.TechnologyPreview, { testId: testId })) : (react_1.default.createElement(DeveloperPreview_1.DeveloperPreview, { testId: testId }));
};
exports.default = NewFeatureSupportLevelBadge;
//# sourceMappingURL=NewFeatureSupportLevelBadge.js.map