text: import manifest from '../../../../package.json';
  import platform from '../../utils/platform';
  import $ from '../expressions';
  
  export default [{
    id: 'show-tray',
    type: 'checkbox',
    label: 'Show in the Menu Bar',
    allow: platform.isDarwin,
    checked: true,
    click: $.all(
      $.showInTray($.key('checked')),
      $.updateSibling('show-dock', 'enabled', $.key('checked')),
      $.updateMenuItem('main', 'show-tray')($.key('checked'))(checked => $.all(
        $.setLocal('checked', $.val(checked)),
        $.updateSibling('show-dock', 'enabled', $.val(checked))
      )),
      $.setPref('show-tray', $.key('checked'))
    )
  }, {
    id: 'show-dock',
    type: 'checkbox',
    label: 'Show in the Dock',
    allow: platform.isDarwin,
    checked: true,
    click: $.all(
      $.showInDock($.key('checked')),
      $.updateSibling('show-tray', 'enabled', $.key('checked')),
      $.updateMenuItem('main', 'show-dock')($.key('checked'))(checked => $.all(
        $.setLocal('checked', $.val(checked)),
        $.updateSibling('show-tray', 'enabled', $.val(checked))
      )),
      $.setPref('show-dock', $.key('checked'))
    )
  }, {
    type: 'separator',
    allow: platform.isDarwin
  }, {
    label: 'Show ' + manifest.productName,
    click: $.showWindow()
  }, {
    label: 'Quit ' + manifest.productName,
    click: $.appQuit()
  }];
  