"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CustomManifestsAlert = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const react_core_1 = require("@patternfly/react-core");
const hooks_1 = require("../../../hooks");
const CustomManifestsAlert = ({ usesExternalPlatform, usesThirdPartyCNI, }) => {
    const { t } = (0, hooks_1.useTranslation)();
    let title;
    let body;
    if (usesExternalPlatform && usesExternalPlatform) {
        title = t("ai:You're using an external platform and a third-party CNI");
        body = t('ai:Make sure to upload the required custom and CNI manifests in this step.');
    }
    else if (usesExternalPlatform) {
        title = t("ai:You're using an external platform");
        body = t('ai:Make sure to upload the required custom manifests in this step.');
    }
    else if (usesThirdPartyCNI) {
        title = t("ai:You're using a third-party CNI");
        body = t('ai:Make sure to upload the required CNI manifests in this step.');
    }
    else {
        return null;
    }
    return (react_1.default.createElement(react_core_1.Stack, null,
        react_1.default.createElement(react_core_1.StackItem, null,
            react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.info, isInline: true, title: title }, body))));
};
exports.CustomManifestsAlert = CustomManifestsAlert;
//# sourceMappingURL=CustomManifestsAlert.js.map