1 | import { __rest } from "tslib";
|
2 | import * as React from 'react';
|
3 | import styles from '@patternfly/react-styles/css/components/Drawer/drawer';
|
4 | import { css } from '@patternfly/react-styles';
|
5 | import { Button } from '../Button';
|
6 | import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
7 | export const DrawerCloseButton = (_a) => {
|
8 | var {
|
9 |
|
10 | className = '', onClose = () => undefined, 'aria-label': ariaLabel = 'Close drawer panel' } = _a, props = __rest(_a, ["className", "onClose", 'aria-label']);
|
11 | return (React.createElement("div", Object.assign({ className: css(styles.drawerClose, className) }, props),
|
12 | React.createElement(Button, { variant: "plain", onClick: onClose, "aria-label": ariaLabel },
|
13 | React.createElement(TimesIcon, null))));
|
14 | };
|
15 | DrawerCloseButton.displayName = 'DrawerCloseButton';
|
16 |
|
\ | No newline at end of file |