text: import { createStore, applyMiddleware } from "redux";
  import { composeWithDevTools } from "redux-devtools-extension/logOnlyInProduction";
  import thunk from "redux-thunk";
  import rootReducer from "./root";
  
  
  export default (initialState) => {
    const middleware = [thunk];
  
    return createStore(
      rootReducer,
      initialState,
      composeWithDevTools(
        applyMiddleware(...middleware)
      )
    );
  };