import { Reducer } from 'redux' import { Actions, ResourceActionType } from './actions' export type State = Record const INITIAL_STATE: State = {} const reducer: Reducer = (state = INITIAL_STATE, action) => { switch (action.type) { case ResourceActionType.UPSERT_ACCOUNT_BALANCE: return { ...state, ...action.data.eThKeys } default: return state } } export default reducer