mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
27 lines
706 B
TypeScript
27 lines
706 B
TypeScript
import { configureStore } from "@reduxjs/toolkit";
|
|
import {
|
|
downloadSlice,
|
|
windowSlice,
|
|
librarySlice,
|
|
searchSlice,
|
|
userPreferencesSlice,
|
|
toastSlice,
|
|
userDetailsSlice,
|
|
gameRunningSlice,
|
|
} from "@renderer/features";
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
search: searchSlice.reducer,
|
|
window: windowSlice.reducer,
|
|
library: librarySlice.reducer,
|
|
userPreferences: userPreferencesSlice.reducer,
|
|
download: downloadSlice.reducer,
|
|
toast: toastSlice.reducer,
|
|
userDetails: userDetailsSlice.reducer,
|
|
gameRunning: gameRunningSlice.reducer,
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|