import React from 'react' import PropTypes from 'prop-types' import Block from '../block' import Button from '../button' import Heading from '../heading' import Text from '../text' export default class PopoverLayout extends React.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 if (isXS) { return (