import { __rest } from "tslib";
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import styles from '@patternfly/react-styles/css/components/Wizard/wizard.mjs';
import { css } from '@patternfly/react-styles';
import { Button } from '../Button';
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon';
export const WizardHeader = (_a) => {
    var { onClose = () => undefined, title, description, isCloseHidden, closeButtonAriaLabel, titleId, descriptionComponent: Component = 'div', descriptionId, className } = _a, props = __rest(_a, ["onClose", "title", "description", "isCloseHidden", "closeButtonAriaLabel", "titleId", "descriptionComponent", "descriptionId", "className"]);
    return (_jsxs("div", Object.assign({ className: css(styles.wizardHeader, className) }, props, { children: [!isCloseHidden && (_jsx("div", { className: css(styles.wizardClose), children: _jsx(Button, { variant: "plain", "aria-label": closeButtonAriaLabel, onClick: onClose, icon: _jsx(RhMicronsCloseIcon, {}) }) })), _jsx("div", { className: css(styles.wizardTitle), children: _jsx("h2", { className: css(styles.wizardTitleText), id: titleId, children: title || _jsx(_Fragment, { children: "\u00A0" }) }) }), description && (_jsx(Component, { className: css(styles.wizardDescription), id: descriptionId, children: description }))] })));
};
WizardHeader.displayName = 'WizardHeader';
//# sourceMappingURL=WizardHeader.js.map