2024-12-06 20:49:28 +00:00
|
|
|
import { configureStore } from '@reduxjs/toolkit'
|
2024-12-11 16:26:36 +00:00
|
|
|
import authReducer from './features/auth/authSlice'
|
|
|
|
import challengesReducer from './features/challenges/challengesSlice'
|
|
|
|
import challengeActionsReducer from './features/challengeActions/challengeActionsSlice'
|
|
|
|
import gameReducer from './features/game/gameSlice'
|
2024-12-06 20:49:28 +00:00
|
|
|
import locationReducer from './features/location/locationSlice'
|
2024-12-13 22:07:37 +00:00
|
|
|
import moneyUpdatesReducer from './features/moneyUpdates/moneyUpdatesSlice'
|
2024-12-11 16:26:36 +00:00
|
|
|
import trainReducer from './features/train/trainSlice'
|
2024-12-06 20:49:28 +00:00
|
|
|
|
|
|
|
const store = configureStore({
|
|
|
|
reducer: {
|
2024-12-10 17:56:50 +00:00
|
|
|
auth: authReducer,
|
2024-12-11 16:26:36 +00:00
|
|
|
challenges: challengesReducer,
|
|
|
|
challengeActions: challengeActionsReducer,
|
|
|
|
game: gameReducer,
|
2024-12-06 20:49:28 +00:00
|
|
|
location: locationReducer,
|
2024-12-13 22:07:37 +00:00
|
|
|
moneyUpdates: moneyUpdatesReducer,
|
2024-12-11 16:26:36 +00:00
|
|
|
train: trainReducer,
|
2024-12-06 20:49:28 +00:00
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
export default store
|
|
|
|
|
|
|
|
export type RootState = ReturnType<typeof store.getState>
|
|
|
|
export type AppDispatch = typeof store.dispatch
|