18 lines
529 B
TypeScript
18 lines
529 B
TypeScript
|
|
import { configureStore } from '@reduxjs/toolkit';
|
||
|
|
import { userReducer } from './slices/userSlice';
|
||
|
|
import { orderReducer } from './slices/orderSlice';
|
||
|
|
import { fileReducer } from './slices/fileSlice';
|
||
|
|
import { printerReducer } from './slices/printerSlice';
|
||
|
|
|
||
|
|
export const store = configureStore({
|
||
|
|
reducer: {
|
||
|
|
user: userReducer,
|
||
|
|
order: orderReducer,
|
||
|
|
file: fileReducer,
|
||
|
|
printer: printerReducer,
|
||
|
|
},
|
||
|
|
});
|
||
|
|
|
||
|
|
export type RootState = ReturnType<typeof store.getState>;
|
||
|
|
export type AppDispatch = typeof store.dispatch;
|