| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/ModalBox/modal-box.mjs'; |
| 5 |
import { Button } from '../Button'; |
| 6 |
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon'; |
| 7 |
export const ModalBoxCloseButton = (_a) => { |
| 8 |
var { className, onClose, 'aria-label': ariaLabel = 'Close', ouiaId } = _a, props = __rest(_a, ["className", "onClose", 'aria-label', "ouiaId"]); |
| 9 |
return (_jsx("div", { className: css(styles.modalBoxClose, className), children: _jsx(Button, Object.assign({ variant: "plain", onClick: (event) => onClose(event), "aria-label": ariaLabel }, (ouiaId && { ouiaId: `${ouiaId}-${ModalBoxCloseButton.displayName}` }), props, { icon: _jsx(RhMicronsCloseIcon, {}) })) })); |
| 10 |
}; |
| 11 |
ModalBoxCloseButton.displayName = 'ModalBoxCloseButton'; |
| 12 |
//# sourceMappingURL=ModalBoxCloseButton.js.map |