import { __rest } from "tslib";
import * as React from 'react';
import styles from '@patternfly/react-styles/css/components/Breadcrumb/breadcrumb';
import { css } from '@patternfly/react-styles';
export const BreadcrumbHeading = (_a) => {
    var { children = null, className = '', to = null, target = null, component = 'a' } = _a, props = __rest(_a, ["children", "className", "to", "target", "component"]);
    const Component = component;
    return (React.createElement("li", Object.assign({}, props, { className: css(styles.breadcrumbItem, className) }),
        React.createElement("h1", { className: css(styles.breadcrumbHeading) },
            to && (React.createElement(Component, { href: to, target: target, className: css(styles.breadcrumbLink, styles.modifiers.current), "aria-current": "page" }, children)),
            !to && React.createElement(React.Fragment, null, children))));
};
//# sourceMappingURL=BreadcrumbHeading.js.map