import React from "react"; import { ipcRenderer, IpcRendererEvent } from "electron"; import { areArgsUpdateAvailableFromMain, UpdateAvailableChannel, onCorrect, UpdateAvailableFromMain, BackchannelArg, ClusterListNamespaceForbiddenChannel, argArgsListNamespaceFordiddenArgs, ListNamespaceFordiddenArgs } from "../../common/ipc"; import { Notifications, notificationsStore } from "../components/notifications"; import { Button } from "../components/button"; import { isMac } from "../../common/vars"; import * as uuid from "uuid"; import { clusterStore } from "../../common/cluster-store"; import { navigate } from "../navigation"; import { clusterSettingsURL } from "../components/+cluster-settings"; function sendToBackchannel(backchannel: string, notificationId: string, data: BackchannelArg): void { notificationsStore.remove(notificationId); ipcRenderer.send(backchannel, data); } function RenderYesButtons(props: { backchannel: string, notificationId: string }) { if (isMac) { /** * auto-updater's "installOnQuit" is not applicable for macOS as per their docs. * * See: https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/src/AppUpdater.ts#L27-L32 */ return