1 import { configureStore } from '@reduxjs/toolkit';
3 import type { ProtonThunkArguments } from '@proton/redux-shared-store-types';
5 import { sharedReducers } from './sharedReducers';
7 export const extraThunkArguments = {} as ProtonThunkArguments;
9 export const baseConfigureStore = () => {
10 return configureStore({
11 reducer: sharedReducers,
12 middleware: (getDefaultMiddleware) =>
13 getDefaultMiddleware({
14 thunk: { extraArgument: extraThunkArguments },
19 export type SharedStore = ReturnType<typeof baseConfigureStore>;