import { IStorageDestinationActionTypes , IStorageDestinationState , RECEIVE , } from './types' ; const initialState = { destinations : [ ] , } ; export function storageDestinationReducer ( state = initialState , action ) { switch ( action . type ) { case RECEIVE : return { ... state , destinations : action . payload , } ; default : return state ; } }