import React from 'react'; import { Box, Icon } from '../../primitives'; import { AlertContext, IAlertContext } from './index'; import { omitUndefined } from '../../../theme/tools/utils'; const AlertCloseButton = ({ children, ...props }: any) => { const newProps = omitUndefined(props); const { iconColor }: IAlertContext = React.useContext(AlertContext); return ( {children || ( )} ); }; export default AlertCloseButton;