{"size": 1100, "ext": "js", "max_stars_repo_path": "src/renderer/constants/menu.js", "max_stars_repo_name": "GaryCXJk/shadow-mosaic", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/renderer/constants/menu.js", "max_issues_repo_name": "GaryCXJk/shadow-mosaic", "max_issues_repo_issues_event_min_datetime": "2021-01-28T19:50:36.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-25T18:41:57.000Z", "max_forks_repo_path": "src/renderer/constants/menu.js", "max_forks_repo_name": "GaryCXJk/shadow-mosaic", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 7, "max_forks_count": null, "avg_line_length": 19.298245614, "max_line_length": 51, "alphanum_fraction": 0.4327272727}
import WindowManager from '@helpers/WindowManager';
import showThemes from './menu-themes';

export default [
  {
    id: 'file',
    defaultMessage: 'File',
    options: [
      {
        id: 'settings',
        defaultMessage: 'Settings',
        action: () => {
          WindowManager.create('settings', {
            parent: 'main',
            location: '/settings',
          });
        },
      },
      {
        type: 'divider',
      },
      {
        id: 'exit',
        defaultMessage: 'Exit',
        action: () => {
          WindowManager.close('main');
        },
      },
    ],
  },
  {
    id: 'theme',
    defaultMessage: 'Theme',
    options: showThemes,
  },
  {
    id: 'help',
    defaultMessage: 'Help',
    options: [
      {
        id: 'about',
        defaultMessage: 'About',
        action: () => {
          WindowManager.create('about', {
            modalParent: 'main',
            location: '/about',
            width: 320,
            height: 500,
            hideDevtools: true,
            resizable: false,
          });
        },
      },
    ],
  },
];
