"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const breadcrumb_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Breadcrumb/breadcrumb"));
const react_styles_1 = require("@patternfly/react-styles");
exports.BreadcrumbHeading = (_a) => {
    var { children = null, className = '', to = null, target = null, component = 'a' } = _a, props = tslib_1.__rest(_a, ["children", "className", "to", "target", "component"]);
    const Component = component;
    return (React.createElement("li", Object.assign({}, props, { className: react_styles_1.css(breadcrumb_1.default.breadcrumbItem, className) }),
        React.createElement("h1", { className: react_styles_1.css(breadcrumb_1.default.breadcrumbHeading) },
            to && (React.createElement(Component, { href: to, target: target, className: react_styles_1.css(breadcrumb_1.default.breadcrumbLink, breadcrumb_1.default.modifiers.current), "aria-current": "page" }, children)),
            !to && React.createElement(React.Fragment, null, children))));
};
//# sourceMappingURL=BreadcrumbHeading.js.map