import { legacy_createStore as createStore, applyMiddleware, compose, combineReducers } from "redux";
import { thunk } from "redux-thunk";
import createDebounce from "redux-debounced";
import map from "./map/reducers";
import app from "./app/reducers";

// reduxjstoolkit:

// const store = configureStore({
//   // Automatically calls `combineReducers`
//   reducer: {
//     app,
//     map,
//   },
//   middleware: (getDefaultMiddleware) => {
//     return getDefaultMiddleware().concat(createDebounce());
//   },
// });
/* eslint-disable */
const getStore = () => {
  const store = createStore(combineReducers({
    app,
    map
  }), compose(applyMiddleware(createDebounce(), thunk)));
  return store;
};
export default getStore;
//# sourceMappingURL=store.js.map