content: import 'babel-polyfill'
  import 'whatwg-fetch'
  import 'styles/styles.scss'
  import React from 'react'
  import { render } from 'react-dom'
  import { Provider } from 'react-redux'
  import { Router, Route, IndexRoute, browserHistory } from 'react-router'
  import { createStore, applyMiddleware, compose } from 'redux'
  import thunk from 'redux-thunk'
  
  import App from 'components/App'
  import SearchPastasPage from 'pages/search'
  import SubmitPastaPage from 'pages/submit'
  import AdministrationPage from 'pages/admin'
  import ApprovePage from 'pages/approve'
  import NotFound from 'pages/not-found'
  import requireAuthentication from 'helpers/requireAuthentication'
  import requireAuthorization from 'helpers/requireAuthorization'
  import reducer from 'reducer'
  
  const store = createStore(reducer, undefined, compose(
    applyMiddleware(thunk),
    window.devToolsExtension ? window.devToolsExtension() : f => f
  ))
  
  render((
    <Provider store={store}>
      <Router history={browserHistory}>
        <Route path='/' component={App}>
          <IndexRoute component={SearchPastasPage} />
          <Route path='submit-pasta' component={requireAuthentication(SubmitPastaPage)} />
          <Route path='administration' component={requireAuthorization(AdministrationPage)}>
            <IndexRoute component={null} />
            <Route path='approve-pastas' component={ApprovePage} />
          </Route>
          <Route path='*' component={NotFound} />
        </Route>
      </Router>
    </Provider>
  ), document.getElementById('app'))
  