import PopperJs from 'popper.js' ; const isRelatedTargetInsidePopper = ( event , popperRef ) => typeof popperRef === 'object' && popperRef ?. current && popperRef . current . popper . contains ( event . relatedTarget as Node ) ; export default isRelatedTargetInsidePopper ;