import { app, BrowserWindow } from 'electron';
import main from './browser';

let mainWindow;

function createWindow() {
  mainWindow = new BrowserWindow({
    width: 200,
    height: 200,
    webPreferences: {
      webSecurity: false,
    },
    // resizable: false,
    show: true,
    // transparent: true,
    // frame: false,
    // alwaysOnTop: true,
  });

  mainWindow.loadURL(`file://${__dirname}/renderer/index.html`);

  mainWindow.webContents.openDevTools({ detach: true });

  mainWindow.on('closed', () => {
    mainWindow = null;
  });
}

app.on('ready', createWindow);

app.on('window-all-closed', () => {
  if (process.platform !== 'darwin') {
    app.quit();
  }
});

app.on('activate', () => {
  if (mainWindow === null) {
    createWindow();
  }
});

main(mainWindow);

@@ -4,769 +4,82 @@
 ort 
-%7B app, BrowserWindow %7D from 'electron';%0Aimport main from './browser';%0A%0Alet mainWindow;%0A%0Afunction createWindow() %7B%0A  mainWindow = new BrowserWindow(%7B%0A    width: 200,%0A    height: 200,%0A    webPreferences: %7B%0A      webSecurity: false,%0A    %7D,%0A    // resizable: false,%0A    show: true,%0A    // transparent: true,%0A    // frame: false,%0A    // alwaysOnTop: true,%0A  %7D);%0A%0A  mainWindow.loadURL(%60file://$%7B__dirname%7D/renderer/index.html%60);%0A%0A  mainWindow.webContents.openDevTools(%7B detach: true %7D);%0A%0A  mainWindow.on('closed', () =%3E %7B%0A    mainWindow = null;%0A  %7D);%0A%7D%0A%0Aapp.on('ready', createWindow);%0A%0Aapp.on('window-all-closed', () =%3E %7B%0A  if (process.platform !== 'darwin') %7B%0A    app.quit();%0A  %7D%0A%7D);%0A%0Aapp.on('activate', () =%3E %7B%0A  if (mainWindow === null) %7B%0A    createWindow();%0A  %7D%0A%7D
+menubar from 'menubar';%0Aimport main from './browser';%0A%0Aconst mb = menubar(
 );%0A%0A
@@ -88,12 +88,11 @@
 in(m
-ainW
+b.w
 indo

Use menubar