22 lines
		
	
	
		
			583 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			583 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
import { combineReducers } from 'redux';
 | 
						|
import { reducer as formReducer } from 'redux-form';
 | 
						|
 | 
						|
import { reducer as app } from './redux';
 | 
						|
import { reducer as toasts } from './toasts/redux';
 | 
						|
import entitiesReducer from './redux/entities-reducer';
 | 
						|
import {
 | 
						|
  reducer as challengesApp,
 | 
						|
  projectNormalizer
 | 
						|
} from './routes/challenges/redux';
 | 
						|
 | 
						|
export default function createReducer(sideReducers = {}) {
 | 
						|
  return combineReducers({
 | 
						|
    ...sideReducers,
 | 
						|
    entities: entitiesReducer,
 | 
						|
    app,
 | 
						|
    toasts,
 | 
						|
    challengesApp,
 | 
						|
    form: formReducer.normalize({ ...projectNormalizer })
 | 
						|
  });
 | 
						|
}
 |