import { Action , ActionTypes , spanList , spansWSameTraceIDResponse , traceResponseNew , } from 'store/actions' ; const spanlistinstance = { events : [ ] , segmentID : '' , columns : [ ] } ; export const tracesReducer = ( state = { '0' : spanlistinstance } , action ) : traceResponseNew => { switch ( action . type ) { case ActionTypes . fetchTraces : return action . payload ; default : return state ; } } ; export const traceItemReducer = ( state = { '0' : spanlistinstance } , action ) : spansWSameTraceIDResponse => { switch ( action . type ) { case ActionTypes . fetchTraceItem : return action . payload ; default : return state ; } } ;