{"size": 530, "ext": "js", "max_stars_repo_path": "src/components/Root/index.js", "max_stars_repo_name": "rsmelo/market", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/components/Root/index.js", "max_issues_repo_name": "rsmelo/market", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/components/Root/index.js", "max_forks_repo_name": "rsmelo/market", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.3846153846, "max_line_length": 48, "alphanum_fraction": 0.6433962264}
import React from 'react'
import PropTypes from 'prop-types'
import { Provider } from 'react-redux'
import { BrowserRouter } from 'react-router-dom'

import Header from '../Header'
import router from '../../router'
import style from './style.css'

const Root = ({ store }) => (
  <Provider store={store}>
    <BrowserRouter>
      <div className={style.root}>
        <Header />
        {router}
      </div>
    </BrowserRouter>
  </Provider>
)

Root.propTypes = {
  store: PropTypes.shape({}).isRequired,
}

export default Root
