text: import { createStore, combineReducers, applyMiddleware } from "redux";
  import thunk from "redux-thunk";
  import { composeWithDevTools } from "redux-devtools-extension";
  
  import {
    userLoginReducer,
    userRegisterReducer,
    userDetailsReducer,
    userUpdateProfileReducer,
    userListReducer,
  } from "./reducers/userReducers";
  
  import {
    councilAddReducer,
    councilListReducer,
    councilDeleteReducer,
    councilDetailsReducer,
  } from "./reducers/councilReducers";
  
  const reducer = combineReducers({
    userLogin: userLoginReducer,
    userRegister: userRegisterReducer,
    userDetails: userDetailsReducer,
    userList: userListReducer,
    userUpdateProfile: userUpdateProfileReducer,
  
    councilList: councilListReducer,
    councilAdd: councilAddReducer,
    councilDelete: councilDeleteReducer,
    councilDetails: councilDetailsReducer,
  });
  
  const userInfoFromStorage = localStorage.getItem("userInfo")
    ? JSON.parse(localStorage.getItem("userInfo"))
    : null;
  
  const initialState = {
    userLogin: { userInfo: userInfoFromStorage },
  };
  
  const middleware = [thunk];
  
  const store = createStore(
    reducer,
    initialState,
    composeWithDevTools(applyMiddleware(...middleware))
  );
  
  export default store;
  