import { applyMiddleware, compose, combineReducers, createStore } from 'redux' import thunk from 'redux-thunk' // import faceAnalysisReducer from './faceAnalysis/faceAnalysis.reducer' // import faceSearchReducer from './faceSearch/faceSearch.reducer' // import nameSearchReducer from './nameSearch/nameSearch.reducer' const rootReducer = combineReducers({ // faceAnalysis: faceAnalysisReducer, // faceSearch: faceSearchReducer, // nameSearch: nameSearchReducer, }) function configureStore(initialState = {}) { const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose const store = createStore( rootReducer, initialState, composeEnhancers( applyMiddleware( thunk, ), ), ) return store } const store = configureStore({}) export { store }