import React from 'react' import enhanceWithClickOutside from 'react-click-outside' import WindowPointer from './WindowPointer' import { COLORS } from '../lib/constants' class Popout extends React.PureComponent { static defaultProps = { borderColor: COLORS.SECONDARY, style: {}, onClickOutside: () => {} } handleClickOutside = e => !this.props.hidden && this.props.onClickOutside(e) render() { const { children, borderColor, style, hidden, pointerLeft, pointerRight } = this.props if (hidden) { return null } return (