import React from 'react'; import { usePropsResolution } from '../../../hooks'; import Box from '../../primitives/Box'; import { default as IconButton, IIconButtonProps } from '../IconButton'; import { CloseIcon } from '../../primitives/Icon/Icons'; import { PopoverContext } from './PopoverContext'; const PopoverCloseButton = ( props: Omit, ref: any ) => { const { onClose }: any = React.useContext(PopoverContext); const { _icon, ...newProps } = usePropsResolution( 'PopoverCloseButton', props ); return ( } onPress={onClose} /> ); }; export default React.memo(React.forwardRef(PopoverCloseButton));