"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_core_1 = require("@patternfly/react-core");
const AddBmcHostYamlForm_1 = tslib_1.__importDefault(require("./AddBmcHostYamlForm"));
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
const EnvironmentErrors_1 = require("../InfraEnv/EnvironmentErrors");
const ProvisioningConfigErrorAlert_1 = tslib_1.__importDefault(require("./ProvisioningConfigErrorAlert"));
const AddBmcHostYamlModal = ({ isOpen, onClose, onCreateBmcByYaml, infraEnv, docVersion, provisioningConfigError, }) => {
    const { t } = (0, use_translation_wrapper_1.useTranslation)();
    return (React.createElement(react_core_1.Modal, { "aria-label": t('ai:Add host dialog'), variant: react_core_1.ModalVariant.medium, isOpen: isOpen, onClose: onClose },
        React.createElement(react_core_1.ModalHeader, { title: t('ai:Add hosts by uploading YAML (BMC)') }),
        React.createElement(react_core_1.ModalBody, null,
            React.createElement(EnvironmentErrors_1.EnvironmentErrors, { infraEnv: infraEnv, docVersion: docVersion },
                React.createElement(ProvisioningConfigErrorAlert_1.default, { error: provisioningConfigError }),
                React.createElement(AddBmcHostYamlForm_1.default, { onClose: onClose, onCreateBmcByYaml: onCreateBmcByYaml })))));
};
exports.default = AddBmcHostYamlModal;
//# sourceMappingURL=AddBmcHostYamlModal.js.map