import ownerDocument from 'dom-helpers/ownerDocument' ; import safeFindDOMNode from './safeFindDOMNode' ; export default ( componentOrElement ) => ownerDocument ( safeFindDOMNode ( componentOrElement ) as any ) ;