import * as PartActions from '../actions/part-actions' ; export default ( state = { } , action = { } ) => { switch ( action . type ) { case PartActions . ADD_PART : return { id : action . id , name : action . name } ; default : return state ; } } ;