import { configureStore } from '@reduxjs/toolkit'
import conversationReducer from './conversationSlice'
import chatReducer from './chatSlice'

export const store = configureStore({
  reducer: {
    conversation: conversationReducer,
    chat: chatReducer,
  },
})
// 为了在TypeScript中使用，我们导出这些类型
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch
