index.ts
353 Bytes
import { configureStore } from '@reduxjs/toolkit'
import authReducer from './slices/authSlice'
import tabsReducer from './slices/tabsSlice'
export const store = configureStore({
reducer: {
auth: authReducer,
tabs: tabsReducer,
},
})
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch