\n {arrow &&\n !modal && (\n
\n )}\n {typeof this.props.children === \"function\"\n ? this.props.children(this.closePopup, this.state.isOpen)\n : this.props.children}\n
\n );\n };\n\n render() {\n const { overlayStyle, closeOnDocumentClick, on } = this.props;\n const { modal } = this.state;\n const overlay = this.state.isOpen && !(on.indexOf(\"hover\") >= 0);\n const ovStyle = modal ? styles.overlay.modal : styles.overlay.tooltip;\n return [\n this.state.isOpen && (\n \n {arrow &&\n !modal && (\n
\n )}\n {typeof this.props.children === \"function\"\n ? this.props.children(this.closePopup, this.state.isOpen)\n : this.props.children}\n
\n );\n };\n\n render() {\n const { overlayStyle, closeOnDocumentClick, on } = this.props;\n const { modal } = this.state;\n const overlay = this.state.isOpen && !(on.indexOf(\"hover\") >= 0);\n const ovStyle = modal ? styles.overlay.modal : styles.overlay.tooltip;\n return [\n !!this.props.trigger && (\n