import { configureStore , ThunkAction , Action } from "@reduxjs/toolkit" ; import { combineReducers } from "@reduxjs/toolkit" ; import toastReducer from "./toastReducer" ; import userReducer from "./userReducer" ; const rootReducer = combineReducers ( { toast : toastReducer , user : userReducer , } ) ; export const store = configureStore ( { reducer : rootReducer , } ) ; export type RootState = ReturnType < typeof store . getState > ; export type AppThunk < ReturnType = void > = ThunkAction < ReturnType , RootState , unknown , Action < string > > ;