{"size": 1085, "ext": "js", "max_stars_repo_path": "app/Root.js", "max_stars_repo_name": "TeamWertarbyte/electron-react-material-ui", "max_stars_repo_stars_event_min_datetime": "2017-06-21T19:40:17.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-14T07:31:15.000Z", "max_issues_repo_path": "app/Root.js", "max_issues_repo_name": "reysantana/e-wire-shark", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "app/Root.js", "max_forks_repo_name": "reysantana/e-wire-shark", "max_forks_repo_forks_event_min_datetime": "2017-06-03T14:03:50.000Z", "max_forks_repo_forks_event_max_datetime": "2021-01-19T18:06:23.000Z"}
{"max_stars_count": 39, "max_issues_count": null, "max_forks_count": 12, "avg_line_length": 25.8333333333, "max_line_length": 75, "alphanum_fraction": 0.6866359447}
import React from 'react'
import { createMuiTheme, MuiThemeProvider } from '@material-ui/core/styles'
import createHistory from 'history/createBrowserHistory'
import { ConnectedRouter } from 'react-router-redux'
import configureStore from './configs/configureStore'
import { Provider } from 'react-redux'
import { Switch } from 'react-router-dom'
import Application from './modules/core/containers/Application'
import { createApp } from './ModuleBundler'
import Core from './modules/core'
import Home from './modules/home'

const theme = createMuiTheme()

const history = createHistory()
const store = configureStore({}, history)

const context = {
  store
}

const app = createApp(context)
app.loadModule(Core)
app.loadModule(Home)
app.init()

export default () => {
  return (
    <Provider store={store}>
      <MuiThemeProvider theme={theme}>
        <ConnectedRouter history={history}>
          <Switch>
            <Application>
              {app.routes}
            </Application>
          </Switch>
        </ConnectedRouter>
      </MuiThemeProvider>
    </Provider>
  )
}
