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