11 lines
286 B
TypeScript
11 lines
286 B
TypeScript
import { configureStore } from '@reduxjs/toolkit';
|
|
import boxReducer from './slices/boxSlice';
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
box: boxReducer,
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|