const STATE = {}

export default function(state = STATE, action) {
  switch (action.type) {
    case 'SHOW-CONTEXTMENU':
      return {
        ...action.contextmenu,
        show: true
      }

    case 'HIDE-CONTEXTMENU':
      return {
        ...action.contextmenu,
        show: false
      }

    default:
      return state
  }
}
