"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const react_core_1 = require("@patternfly/react-core");
const react_router_dom_v5_compat_1 = require("react-router-dom-v5-compat");
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
const react_i18next_1 = require("react-i18next");
const common_1 = require("../../../common");
const NoAgentsAlert = ({ cpuArchitecture }) => {
    const { t } = (0, use_translation_wrapper_1.useTranslation)();
    return (react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.warning, title: t('ai:No available hosts with {{cpuArchitecture}} architecture were found', {
            cpuArchitecture: common_1.architectureData[cpuArchitecture].label,
        }), isInline: true },
        t('ai:The cluster can not be installed yet because there are no available hosts with {{cpuArchitecture}} architecture found. To continue:', { cpuArchitecture: common_1.architectureData[cpuArchitecture].label }),
        react_1.default.createElement("br", null),
        react_1.default.createElement(react_core_1.List, { component: react_core_1.ListComponent.ol },
            react_1.default.createElement(react_core_1.ListItem, null,
                react_1.default.createElement(react_i18next_1.Trans, { t: t, cpuArchitecture: cpuArchitecture },
                    "ai:Add hosts with",
                    ' ',
                    {
                        cpuArchitecture: common_1.architectureData[cpuArchitecture].label,
                    },
                    ' ',
                    "architecture to an",
                    ' ',
                    react_1.default.createElement(react_router_dom_v5_compat_1.Link, { to: "/multicloud/infrastructure/environments" }, "infrastructure environment"))),
            react_1.default.createElement(react_core_1.ListItem, null, t('ai:Continue configuration by editing this cluster and utilize the newly added hosts')))));
};
exports.default = NoAgentsAlert;
//# sourceMappingURL=NoAgentsAlert.js.map