/* * * Content * */ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { selectPlugins } from 'containers/App/selectors'; import styles from './styles.scss'; export class Content extends React.Component { // eslint-disable-line react/prefer-stateless-function render() { return (
{React.Children.toArray(this.props.children)}
); } } Content.propTypes = { children: PropTypes.node.isRequired, }; const mapStateToProps = createSelector( selectPlugins(), (plugins) => ({ plugins }) ); function mapDispatchToProps(dispatch) { return { dispatch, }; } export default connect(mapStateToProps, mapDispatchToProps)(Content);