// @flow import React, { useState } from 'react'; // @if TARGET='app' import { ipcRenderer } from 'electron'; // @endif import { Modal } from 'modal/modal'; import LastReleaseChanges from 'component/lastReleaseChanges'; type Props = { closeModal: any => any, declineAutoUpdate: () => any, }; const ModalAutoUpdateDownloaded = (props: Props) => { const { closeModal, declineAutoUpdate } = props; const [disabled, setDisabled] = useState(false); const handleConfirm = () => { setDisabled(true); ipcRenderer.send('autoUpdateAccepted'); }; const handleAbort = () => { declineAutoUpdate(); closeModal(); }; return ( ); }; export default ModalAutoUpdateDownloaded;