"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_core_1 = require("@patternfly/react-core");
const react_1 = tslib_1.__importDefault(require("react"));
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
const utils_1 = require("../../../common/utils");
const ProvisioningConfigErrorAlert = ({ error }) => {
    const { t } = (0, use_translation_wrapper_1.useTranslation)();
    if (!error) {
        return null;
    }
    return (react_1.default.createElement(react_core_1.Alert, { title: t('ai:Failed to get Provisioning Configuration'), variant: "danger", isInline: true }, (0, utils_1.getErrorMessage)(error)));
};
exports.default = ProvisioningConfigErrorAlert;
//# sourceMappingURL=ProvisioningConfigErrorAlert.js.map