import * as React from 'react'; import { remote } from 'electron'; import './Frame.css'; function closeHandler() { const window = remote.getCurrentWindow(); window.close(); } function restoreDownHandler() { const window = remote.getCurrentWindow() if(window.isMaximized()){ window.unmaximize() } else { window.maximize() } (document.activeElement as HTMLElement).blur() } function minimizeHandler() { const window = remote.getCurrentWindow() window.minimize(); (document.activeElement as HTMLElement).blur() } const Frame = () => (