import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; export default @(component => injectIntl(component, { withRef: true })) class ColumnsArea extends ImmutablePureComponent { static propTypes = { intl: PropTypes.object.isRequired, columns: ImmutablePropTypes.list.isRequired, children: PropTypes.node, layout: PropTypes.object, }; render() { const { children } = this.props; const layout = this.props.layout || { LEFT:null, RIGHT:null }; return (