import { ChangeTab } from '../actions/updateValue' ; import { CHANGE_SELECTED_TAB } from '../constants' ; export default ( state = 0 , action ) => { switch ( action . type ) { case CHANGE_SELECTED_TAB : return action . data ; default : return state ; } } ;