import { combineReducers, configureStore } from "@reduxjs/toolkit";

// Add imports for reducers and APIs here

const rootReducers = combineReducers({
    // Add reducers here
});

export const store = configureStore({
    reducer: rootReducers,
    middleware: (getDefaultMiddleware) =>
        getDefaultMiddleware().concat(
            // Add API middlewares here
        )
});

<% if (isTypeScript) { %>
export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
<% } %>
