"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 ClusterWizardContext_1 = require("../ClusterWizardContext");
const common_1 = require("../../../../common");
const InstallDisconnectedSwitch = ({ isDisabled }) => {
    const { t } = (0, common_1.useTranslation)();
    const { installDisconnected, setInstallDisconnected } = (0, ClusterWizardContext_1.useClusterWizardContext)();
    const switchBtn = (React.createElement(react_core_1.Switch, { id: "disconnected-install-switch", isChecked: installDisconnected, onChange: (_, checked) => setInstallDisconnected(checked), ouiaId: "DisconnectedInstall", isDisabled: isDisabled }));
    return isDisabled ? (React.createElement(react_core_1.Tooltip, { content: React.createElement("div", null, t('ai:This option is not editable after the draft cluster is created')) }, switchBtn)) : (switchBtn);
};
exports.default = InstallDisconnectedSwitch;
//# sourceMappingURL=InstallDisconnectedSwitch.js.map