import { combineReducers } from "@reduxjs/toolkit";
import authreducer from "./authSlice";
import telemetryReducer from "./telemetrySlice";
import userReducer from "./userSlice";
import emiDetailsReducer from "./paymentSlice";

const rootReducer = combineReducers({
  auth: authreducer,
  telemetry: telemetryReducer,
  user: userReducer,
  payments: emiDetailsReducer,
});

export default rootReducer;
export type RootState = ReturnType<typeof rootReducer>;
