import { combineReducers } from 'redux';
import { RootState } from '../models';
import { chatReducer as chats } from './chat';
import { conversationReducer as conversations } from './conversations';
import { employeeDataReducer as employeeData } from './employeeData';
import { employerDataReducer as employerData } from './employerData';
import { navigationReducer } from './navigation';
import { networkReducer as network } from './network';
import { offerReducer as offers } from './offers';
import { userReducer as user } from './user';

export const rootReducer = combineReducers<RootState>({
  navigation: navigationReducer,
  user,
  offers,
  network,
  employeeData,
  employerData,
  chats,
  conversations,
});
