export const osxMenu = (app, window, openAbout) => (
  [{
    label: 'Daedalus',
    submenu: [{
      label: 'About',
      click() {
        openAbout();
      },
    }, {
      label: 'Quit',
      accelerator: 'Command+Q',
      click: () => app.quit()
    }]
  }, {
    label: 'Edit',
    submenu: [{
      label: 'Undo',
      accelerator: 'Command+Z',
      selector: 'undo:'
    }, {
      label: 'Redo',
      accelerator: 'Shift+Command+Z',
      selector: 'redo:'
    }, {
      type: 'separator'
    }, {
      label: 'Cut',
      accelerator: 'Command+X',
      selector: 'cut:'
    }, {
      label: 'Copy',
      accelerator: 'Command+C',
      selector: 'copy:'
    }, {
      label: 'Paste',
      accelerator: 'Command+V',
      selector: 'paste:'
    }, {
      label: 'Select All',
      accelerator: 'Command+A',
      selector: 'selectAll:'
    }]
  }, {
    label: 'View',
    submenu: [
      {
        label: 'Reload',
        accelerator: 'Command+R',
        click: () => window.webContents.reload()
      },
      {
        label: 'Toggle Full Screen',
        accelerator: 'Ctrl+Command+F',
        click: () => window.setFullScreen(!window.isFullScreen())
      },
      {
        label: 'Toggle Developer Tools',
        accelerator: 'Alt+Command+I',
        click: () => window.toggleDevTools()
      }
    ]
  }]
);

export const osxMenu = (app, window, openAbout) => (
  [{
    label: 'Daedalus',
    submenu: [{
      label: 'About',
      click() {
        openAbout();
      },
    }, {
      label: 'Quit',
      accelerator: 'Command+Q',
      click: () => app.quit()
    }]
  }, {
    label: 'Edit',
    submenu: [{
      label: 'Undo',
      accelerator: 'Command+Z',
      role: 'undo'
    }, {
      label: 'Redo',
      accelerator: 'Shift+Command+Z',
      role: 'redo'
    }, {
      type: 'separator'
    }, {
      label: 'Cut',
      accelerator: 'Command+X',
      role: 'cut'
    }, {
      label: 'Copy',
      accelerator: 'Command+C',
      role: 'copy'
    }, {
      label: 'Paste',
      accelerator: 'Command+V',
      role: 'paste'
    }, {
      label: 'Select All',
      accelerator: 'Command+A',
      role: 'selectall'
    }]
  }, {
    label: 'View',
    submenu: [
      {
        label: 'Reload',
        accelerator: 'Command+R',
        click: () => window.webContents.reload()
      },
      {
        label: 'Toggle Full Screen',
        accelerator: 'Ctrl+Command+F',
        click: () => window.setFullScreen(!window.isFullScreen())
      },
      {
        label: 'Toggle Developer Tools',
        accelerator: 'Alt+Command+I',
        click: () => window.toggleDevTools()
      }
    ]
  }]
);

Use role instead of selector in macOS menu
[DDW-160] Use role instead of selector in macOS menu
