| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.DrawerCloseButton = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const drawer_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Drawer/drawer")); |
| 7 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 8 |
const Button_1 = require("../Button"); |
| 9 |
const rh_microns_close_icon_1 = tslib_1.__importDefault(require('@patternfly/react-icons/dist/js/icons/rh-microns-close-icon')); |
| 10 |
const DrawerCloseButton = (_a) => { |
| 11 |
var { className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = tslib_1.__rest(_a, ["className", "onClose", 'aria-label']); |
| 12 |
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, react_styles_1.css)(drawer_1.default.drawerClose, className) }, props, { children: (0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel, icon: (0, jsx_runtime_1.jsx)(rh_microns_close_icon_1.default, {}) }) }))); |
| 13 |
}; |
| 14 |
exports.DrawerCloseButton = DrawerCloseButton; |
| 15 |
exports.DrawerCloseButton.displayName = 'DrawerCloseButton'; |
| 16 |
//# sourceMappingURL=DrawerCloseButton.js.map |