import * as React from 'react'; import styles from '@patternfly/react-styles/css/components/Drawer/drawer'; import { css } from '@patternfly/react-styles'; import { Button } from '../Button'; import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon'; export interface DrawerCloseButtonProps extends React.HTMLProps { /** Additional classes added to the drawer close button outer
. */ className?: string; /** A callback for when the close button is clicked */ onClose?: () => void; /** Accessible label for the drawer close button */ 'aria-label'?: string; } export const DrawerCloseButton: React.FunctionComponent = ({ className = '', onClose = () => undefined as any, 'aria-label': ariaLabel = 'Close drawer panel', ...props }: DrawerCloseButtonProps) => (
); DrawerCloseButton.displayName = 'DrawerCloseButton';