import { EventInteractionState } from '../interactions/event-interaction-state' ; import { Action } from './Action' ; export function reduceEventResize ( currentResize , action ) { let newResize ; switch ( action . type ) { case 'UNSET_EVENT_RESIZE' : return null ; case 'SET_EVENT_RESIZE' : newResize = action . state ; return { affectedEvents : newResize . affectedEvents , mutatedEvents : newResize . mutatedEvents , isEvent : newResize . isEvent , } ; default : return currentResize ; } }