import { GlobalDataAction , GlobalDataActionType } from '../actions/globalDataAction' ; export default ( state = { } , action ) => { if ( action . type === GlobalDataActionType ) { return { ... state , ... action . data } ; } return state ; } ;