content: import React from 'react'
  
  import { createStore, combineReducers, compose, applyMiddleware } from 'redux'
  
  import { routerReducer, routerMiddleware } from 'react-router-redux'
  import { metaMiddleware } from './middleware/Meta'
  import { PromiseMiddleware } from './middleware/Promise'
  import { requestReducer } from './actions/Requests'
  import { postsReducer } from './actions/PostList'
  import { componentReducer } from './actions/Component'
  import { openGraphReducer } from './actions/OpenGraph'
  import { metaReducer } from './actions/Meta'
  import { asyncStatus } from './actions/AsyncStatus'
  import { galleries } from './actions/Gallery'
  
  
  
  
  export function configureStore(history, initialState) {
    const reducer = combineReducers({
      routing: routerReducer,
      posts: postsReducer,
      component: componentReducer,
      requests: requestReducer,
      openGraphs: openGraphReducer,
      meta: metaReducer,
      asyncStatus,
      galleries
    })
  
    const store = createStore(
      reducer,
      initialState,
      compose(
        applyMiddleware(
          routerMiddleware(history),
          PromiseMiddleware,
          metaMiddleware,
          // store => next => action => {
          //   console.log('Action dispatched', action)
          //   return next(action)
          // },
        ),
        typeof window !== 'undefined' && window.devToolsExtension ? window.devToolsExtension() : f => f
      )
    )
  
    return store
  }
  