| 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/Popover/popover.mjs'; |
| 5 |
import { Button } from '../Button'; |
| 6 |
import RhMicronsCloseIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-close-icon'; |
| 7 |
export const PopoverCloseButton = (_a) => { |
| 8 |
var { onClose = () => undefined } = _a, props = __rest(_a, ["onClose"]); |
| 9 |
return (_jsx("div", { className: css(styles.popoverClose), children: _jsx(Button, Object.assign({ onClick: onClose, variant: "plain", "aria-label": true }, props, { style: { pointerEvents: 'auto' }, icon: _jsx(RhMicronsCloseIcon, {}) })) })); |
| 10 |
}; |
| 11 |
PopoverCloseButton.displayName = 'PopoverCloseButton'; |
| 12 |
//# sourceMappingURL=PopoverCloseButton.js.map |