import { Actions , SET_ACCOUNT , SetAccountAction } from '../actions/account.actions' ; import { AccountState } from '../states' ; export function reducer ( state , action ) { switch ( action . type ) { case SET_ACCOUNT : return ( action as SetAccountAction ) . payload ; } return state ; }