text: /*
   *
   * DataProvider
   *
   */
  
  import React, { PropTypes } from 'react';
  import { connect } from 'react-redux';
  import { createStructuredSelector } from 'reselect';
  import makeSelectDataProvider from './selectors';
  
  export class DataProvider extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
    render() {
      return (
        <div>
          {(this.child || []).forEach((child)=>{
            return <child {...this.props} />
          })}
        </div>
      );
    }
  }
  
  DataProvider.propTypes = {
    dispatch: PropTypes.func.isRequired,
  };
  
  const mapStateToProps = createStructuredSelector({
    DataProvider: makeSelectDataProvider(),
  });
  
  function mapDispatchToProps(dispatch) {
    return {
      dispatch,
    };
  }
  
  export default connect(mapStateToProps, mapDispatchToProps)(DataProvider);
  