text: /**
   * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
   * under one or more contributor license agreements. See the NOTICE file
   * distributed with this work for additional information regarding copyright
   * ownership.
   *
   * Camunda licenses this file to you under the MIT; you may not use this file
   * except in compliance with the MIT License.
   */
  
  export default function getBpmnWindowMenu(state) {
    return [
      ...getZoomEntries(state),
      ...getPropertiesPanelEntries(state),
      ...getOverviewEntries(state)
    ];
  }
  
  function getZoomEntries({ zoom }) {
    return zoom ? [{
      label: 'Zoom In',
      accelerator: 'CommandOrControl+=',
      action: 'zoomIn'
    }, {
      label: 'Zoom Out',
      accelerator: 'CommandOrControl+-',
      action: 'zoomOut'
    }, {
      label: 'Zoom to Actual Size',
      accelerator: 'CommandOrControl+0',
      action: 'resetZoom'
    }, {
      label: 'Zoom to Fit Diagram',
      accelerator: 'CommandOrControl+1',
      action: 'zoomFit'
    }, {
      type: 'separator'
    }] : [];
  }
  
  function getPropertiesPanelEntries({ propertiesPanel }) {
    return propertiesPanel ? [{
      label: 'Toggle Properties Panel',
      accelerator: 'CommandOrControl+P',
      action: 'toggleProperties'
    }, {
      label: 'Reset Properties Panel',
      accelerator: 'CommandOrControl+Shift+P',
      action: 'resetProperties'
    }] : [];
  }
  
  function getOverviewEntries({ overview }) {
    return overview ? [{
      label: 'Toggle Overview',
      accelerator: 'CommandOrControl+P',
      action: 'toggleOverview'
    }, {
      label: 'Reset Overview',
      accelerator: 'CommandOrControl+Shift+P',
      action: 'resetOverview'
    }] : [];
  }