"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 api_1 = require("../../../common/api");
const ClusterBreadcrumbs = ({ clusterName }) => {
    return (!api_1.isInOcm && (react_1.default.createElement(react_core_1.PageSection, { hasBodyWrapper: false },
        react_1.default.createElement(react_core_1.Breadcrumb, { "data-testid": "cluster-breadcrumbs" },
            react_1.default.createElement(react_core_1.BreadcrumbItem, { "data-testid": "assisted-clusters-breadcrumb" },
                react_1.default.createElement(react_router_dom_v5_compat_1.Link, { to: `..` }, "Assisted Clusters")),
            clusterName && (react_1.default.createElement(react_core_1.BreadcrumbItem, { "data-testid": "cluster-breadcrumb", isActive: true }, clusterName))))));
};
exports.default = ClusterBreadcrumbs;
//# sourceMappingURL=ClusterBreadcrumbs.js.map