// @flow import React from 'react'; // @if TARGET='app' import { ipcRenderer } from 'electron'; // @endif import { Modal } from 'modal/modal'; import Button from 'component/button'; type Props = { closeModal: any => any, declineAutoUpdate: () => any, }; type State = { disabled: boolean, }; class ModalAutoUpdateDownloaded extends React.PureComponent { constructor(props: Props) { super(props); this.state = { disabled: false, }; } render() { const { closeModal, declineAutoUpdate } = this.props; return ( { this.setState({ disabled: true }); ipcRenderer.send('autoUpdateAccepted'); }} onAborted={() => { declineAutoUpdate(); closeModal(); }} >

{__('A new version of LBRY is ready for you.')}

{__('Want to know what has changed?')} See the{' '}