import { ActionWithPayload , TagActions } from '../actions' ; export function tags ( state = [ ] , action ) { switch ( action . type ) { case TagActions . LOAD_TAGS_SUCCESS : return action . payload ; default : return state ; } } export function topTags ( state = [ ] , action ) { switch ( action . type ) { case TagActions . LOAD_TOP_TAGS_SUCEESS : return action . payload ; default : return state ; } }