import { Action } from './Action' ; export function reduceSelectedEvent ( currentInstanceId , action ) { switch ( action . type ) { case 'UNSELECT_EVENT' : return '' ; case 'SELECT_EVENT' : return action . eventInstanceId ; default : return currentInstanceId ; } }