import account from 'store/account';
import general from 'store/general';
import workspace from 'store/workspace';
import messagerie from 'store/messagerie';
import booking from 'store/booking';
import order from 'store/order';

const reducers = {
  account: account.reducer,
  general: general.reducer,
  messagerie: messagerie.reducer,
  workspace: workspace.reducer,
  booking: booking.reducer,
  order: order.reducer,
};

export interface AppStoreState {
  account: ReturnType<typeof account.reducer>;
  general: ReturnType<typeof general.reducer>;
  messagerie: ReturnType<typeof messagerie.reducer>;
  workspace: ReturnType<typeof workspace.reducer>;
  booking: ReturnType<typeof booking.reducer>;
  order: ReturnType<typeof order.reducer>;
}

export default reducers;
