import { configureStore } from '@reduxjs/toolkit'
import drugSlice from './slices/drugSlice'
import websocketSlice  from './slices/websocketSlice'



export const store = configureStore({
  reducer: {
    drugs: drugSlice,
    websocket: websocketSlice 
  },
  middleware: (getDefaultMiddleware) => getDefaultMiddleware({
    serializableCheck: false,
  })
})

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