import { Close } from '@air/icons'; import { forwardRef } from 'react'; import { X_BUTTON } from './testIDs'; import { IconButton, IconButtonProps, NonSemanticIconButtonProps } from './IconButton'; export interface XButtonProps extends Optional, Pick {} /** * Used as the dismiss button in popovers, alerts, and modals. */ export const XButton = forwardRef( ( { children = 'Close Modal', onClick, size = 'extra-small', tx, variant = 'button-unstyled', }: XButtonProps, ref, ) => ( {children} ), ); XButton.displayName = 'XButton';