import { configureStore } from '@reduxjs/toolkit';
import globalReducer from './global';
import userReducer from './user';
import ideContainerReducer from './ideContainer';

// 创建 store
const store = configureStore({
  reducer: {
    global: globalReducer,
    user: userReducer,
    ideContainer: ideContainerReducer
  }
});

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

export default store;
