import { Action , ActionTypes , serviceMapStore } from 'store/actions' ; const initialState = { items : [ ] , services : [ ] , } ; export const ServiceMapReducer = ( state = initialState , action ) : serviceMapStore => { switch ( action . type ) { case ActionTypes . getServiceMapItems : return { ... state , items : action . payload , } ; case ActionTypes . getServices : return { ... state , services : action . payload , } ; default : return state ; } } ;