28 lines
1.0 KiB
TypeScript
28 lines
1.0 KiB
TypeScript
import { configureStore } from '@reduxjs/toolkit';
|
|
|
|
import ampelkarteEWSReducer from './ampelkarteEWSSlice';
|
|
import ampelkarteGWWPReducer from './ampelkarteGWWPSlice';
|
|
import cadastreReducer from './cadastreSlice';
|
|
import computationsEWSReducer from './computationsEWSSlice';
|
|
import computationsGWWPReducer from './computationsGWWPSlice';
|
|
import resourcesGWWPReducer from './resourcesGWWPSlice';
|
|
import resourcesEWSReducer from './resourcesEWSSlice';
|
|
import screenshotReducer from './screenshotSlice';
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
ampelkarteEWS: ampelkarteEWSReducer,
|
|
ampelkarteGWWP: ampelkarteGWWPReducer,
|
|
cadastre: cadastreReducer,
|
|
computationsEWS: computationsEWSReducer,
|
|
computationsGWWP: computationsGWWPReducer,
|
|
resourcesEWS: resourcesEWSReducer,
|
|
resourcesGWWP: resourcesGWWPReducer,
|
|
screenshot: screenshotReducer,
|
|
},
|
|
});
|
|
|
|
// infer the `RootState` and `AppDispatch` types from the store itself
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|