// redux/store.ts
import { configureStore } from "@reduxjs/toolkit";
import authReducer from "./slices/authSlice";
import variablesReducer from "./slices/variablesSlice";
import chartDataReducer from "./slices/chartDataSlice";

const store = configureStore({
  reducer: {
    auth: authReducer,
    variables: variablesReducer,
    chartData: chartDataReducer,
  },
});

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

export default store;
