import { configureStore } from "@reduxjs/toolkit";
import toggleReducer from "./feature/toggleSlice";
import authReducer from "./feature/authSlice";
import userReducer from "./feature/userSlice";

export const store = configureStore({
  reducer: {
    toggle: toggleReducer,
    auth: authReducer,
    user: userReducer,
  },
});

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