import {app} from 'electron';
import addFolderByCsv from './../controllers/folder/addFolderByCsv';

export default function getMenuTemplate() {

  return [
    {
      label: 'App',
      submenu: [
        {
          label: "Quit",
          accelerator: "Command+Q",
          click: () => app.quit()
        },
        {
          label: 'Undo',
          accelerator: 'CmdOrCtrl+Z',
          selector: 'undo:'
        },
        {
          label: 'Redo',
          accelerator: 'Shift+CmdOrCtrl+Z',
          selector: 'redo:'
        },
        {
          type: 'separator'
        },
        {
          label: 'Cut',
          accelerator: 'CmdOrCtrl+X',
          selector: 'cut:'
        },
        {
          label: 'Copy',
          accelerator: 'CmdOrCtrl+C',
          selector: 'copy:'
        },
        {
          label: 'Paste',
          accelerator: 'CmdOrCtrl+V',
          selector: 'paste:'
        },
        {
          label: 'Select All',
          accelerator: 'CmdOrCtrl+A',
          selector: 'selectAll:'
        }
      ]
    }
  ];
}


@@ -1053,16 +1053,305 @@
       %5D%0A
+    %7D,%0A    %7B%0A      label: 'View',%0A      submenu: %5B%0A        %7B%0A          label: 'Reset Zoom',%0A          role: 'resetzoom'%0A        %7D,%0A        %7B%0A          label: 'Zoom In',%0A          role: 'zoomin'%0A        %7D,%0A        %7B%0A          label: 'Zoom Out',%0A          role: 'zoomout'%0A        %7D,%0A      %5D%0A
     %7D%0A  

add View menu