import { FocusEvent } from 'react' ; param e export default ( e ) : boolean => { return ( e . currentTarget . contains ( e . target as Node ) && ( ! e . relatedTarget || ! e . currentTarget . contains ( e . relatedTarget as Node ) ) ) ; } ;