import Block from '../block' import Button from '../button' import Heading from '../heading' import Text from '../text' export default class PopoverLayout extends PureComponent { static propTypes = { children: PropTypes.node, width: PropTypes.number, isXS: PropTypes.bool, title: PropTypes.string, onClose: PropTypes.func, } static defaultProps = { width: 250, } handleOnClose = () => { this.props.onClose() } render() { const { children, width, isXS, title, } = this.props console.log("popoverlayout props:", this.props) if (isXS) { return (
{ !!title &&
{title}
}
{children}
) } return (
{children}
) } }