presenton/servers/nextjs/store/store.ts
2025-05-10 19:57:24 +05:45

16 lines
630 B
TypeScript

import { configureStore } from "@reduxjs/toolkit";
import presentationGenerationReducer from "./slices/presentationGeneration";
import themeReducer from "@/app/(presentation-generator)/store/themeSlice";
import pptGenUploadSlice from "./slices/presentationGenUpload";
export const store = configureStore({
reducer: {
presentationGeneration: presentationGenerationReducer,
theme: themeReducer,
pptGenUpload: pptGenUploadSlice,
},
});
// Infer the `RootState` and `AppDispatch` types from the store itself
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;