import { configureStore } from "@reduxjs/toolkit";
import loadingReducer from "../features/loading/loadingSlice";
import areasReducer from "../features/areas/areasSlice";
import popupReducer from "../features/popup/popupSlice";
import accountReducer from "../features/account/accuntSlice";

export const store = configureStore({
  reducer: {
    loading: loadingReducer,
    areas: areasReducer,
    popup: popupReducer,
    account: accountReducer,
  },
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
