NeoScan_Physician/app/redux/rootReducer.ts
2025-07-24 20:06:12 +05:30

36 lines
1.2 KiB
TypeScript

/*
* File: rootReducer.ts
* Description: Root reducer combining all feature slices for Redux store
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/
import { combineReducers } from '@reduxjs/toolkit';
// Import feature slices
import profileReducer from '../modules/Profile/redux/profileSlice';
import settingsReducer from '../modules/Profile/redux/settingsSlice';
// Add other slices as needed, e.g.:
import dashboardReducer from '../modules/Dashboard/redux/dashboardSlice';
import authReducer from '../modules/Auth/redux/authSlice';
import hospitalReducer from '../modules/Auth/redux/hospitalSlice';
// RootState type for use throughout the app
export type RootState = ReturnType<typeof rootReducer>;
// Combine all reducers into the rootReducer
const rootReducer = combineReducers({
profile: profileReducer,
settings: settingsReducer,
dashboard:dashboardReducer,
auth:authReducer,
hospital:hospitalReducer
// Add other reducers here
});
export default rootReducer;
/*
* End of File: rootReducer.ts
* Design & Developed by Tech4Biz Solutions
* Copyright (c) Spurrin Innovations. All rights reserved.
*/