import { contains } from "./contains" ; /**
 * Returns `true` if `event` has been fired within a React Portal element.
 */ export function isPortalEvent ( event ) { return ! contains ( event . currentTarget , event . target as Element ) ; }