24 lines
721 B
TypeScript
Raw Normal View History

2025-08-05 12:35:40 +07:00
// Third-party Imports
import { configureStore } from '@reduxjs/toolkit'
// Slice Imports
import chatReducer from '@/redux-store/slices/chat'
import calendarReducer from '@/redux-store/slices/calendar'
import kanbanReducer from '@/redux-store/slices/kanban'
import emailReducer from '@/redux-store/slices/email'
2025-08-05 21:31:53 +07:00
import productReducer from '@/redux-store/slices/product'
2025-08-05 12:35:40 +07:00
export const store = configureStore({
reducer: {
chatReducer,
calendarReducer,
kanbanReducer,
2025-08-05 21:31:53 +07:00
emailReducer,
productReducer
2025-08-05 12:35:40 +07:00
},
middleware: getDefaultMiddleware => getDefaultMiddleware({ serializableCheck: false })
})
export type RootState = ReturnType<typeof store.getState>
export type AppDispatch = typeof store.dispatch