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

{__( 'A new version of LBRY has been released, downloaded, and is ready for you to use pending a restart.' )}

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

); } } export default ModalAutoUpdateDownloaded;