// @flow import React from 'react'; // @if TARGET='app' import { ipcRenderer } from 'electron'; // @endif import { Modal } from 'modal/modal'; import Button from 'component/button'; import I18nMessage from 'component/i18nMessage'; 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 %release_notes%.

); } } export default ModalAutoUpdateDownloaded;