import {configureStore, combineReducers} from "@reduxjs/toolkit"; import { reducer as formReducer } from 'redux-form' // import formSlice from "./reducers/formSlice"; const rootReducer = combineReducers({ form: formReducer, // control: formSlice, }); export const setupStore = () => { return configureStore( { reducer: rootReducer, }) }; export type RootState = ReturnType export type AppStore = ReturnType export type AppDispatch = AppStore['dispatch']