import { configureStore } from '@reduxjs/toolkit'
import { applyMiddleware } from 'redux'
import reducer from './reducers/index'
import thunk from 'redux-thunk'
export const store = configureStore({
    reducer: reducer,
    middleware: (getDefaultMiddleware) => getDefaultMiddleware({
        immutableCheck: { warnAfter: 128 },
        serializableCheck: { warnAfter: 128 },
    })
}, applyMiddleware(thunk))