import Block from '../block' import Heading from '../heading' export default class PopoverLayout extends PureComponent { static propTypes = { children: PropTypes.node, width: PropTypes.number, isXS: PropTypes.bool, title: PropTypes.string, } static defaultProps = { width: 250, } render() { const { children, width, isXS, title, } = this.props if (isXS) { return (
{ !!title &&
{title}
}
{children}
) } return (
{children}
) } }