"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssistedInstallerHeader = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const react_core_1 = require("@patternfly/react-core");
const common_1 = require("../../../common");
const use_feature_1 = require("../../hooks/use-feature");
const AssistedInstallerHeader = ({ clusterName }) => {
    const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
    return (react_1.default.createElement(react_1.default.Fragment, null,
        react_1.default.createElement(react_core_1.Content, { component: "h1", className: "pf-v6-u-display-inline" }, clusterName || 'Install OpenShift with the Assisted Installer'),
        isSingleClusterFeatureEnabled && react_1.default.createElement(common_1.TechnologyPreview, null),
        react_1.default.createElement(react_core_1.Split, { hasGutter: true },
            react_1.default.createElement(react_core_1.SplitItem, null,
                react_1.default.createElement(common_1.ExternalLink, { href: common_1.ASSISTED_INSTALLER_DOCUMENTATION_LINK }, "Assisted Installer documentation")),
            common_1.isInOcm && (react_1.default.createElement(react_core_1.SplitItem, null,
                react_1.default.createElement(react_core_1.Content, { component: "a", "data-testid": "whats-new-link", hidden: true }, "What's new in Assisted Installer?"))))));
};
exports.AssistedInstallerHeader = AssistedInstallerHeader;
//# sourceMappingURL=AssistedInstallerHeader.js.map