// @flow import React from 'react'; import { Modal } from 'modal/modal'; import { Line } from 'rc-progress'; import Button from 'component/button'; type Props = { downloadProgress: ?number, downloadComplete: boolean, downloadItem: string, startUpgrade: () => void, cancelUpgrade: () => void, upgradeInitialized: boolean, failedInstallation: boolean, }; class ModalDownloading extends React.PureComponent { render() { const { downloadProgress, downloadComplete, downloadItem, startUpgrade, cancelUpgrade, upgradeInitialized, failedInstallation, } = this.props; return ( {downloadProgress ? `${downloadProgress}% ${__('complete')}` : null} {downloadComplete ? (

{__('Click "Begin Upgrade" to start the upgrade process.')}

{__( 'The app will close (if not, quit with CTRL-Q), and you will be prompted to install the latest version of LBRY.' )}

{__('To launch installation manually, close LBRY (CTRL-Q) and run the command below in the terminal.')}

sudo dpkg -i {downloadItem}

{__('After the install is complete, please reopen the app.')}

{__('Note: You can also install the AppImage version for streamlined updates.')}{' '}