// @flow import React from 'react'; import { Modal } from 'modal/modal'; import ClaimPreview from 'component/claimPreview'; import Button from 'component/button'; import Card from 'component/common/card'; type Props = { closeModal: () => void, clearPublish: () => void, navigate: string => void, uri: string, isEdit: boolean, filePath: ?string, }; class ModalPublishSuccess extends React.PureComponent { render() { const { closeModal, clearPublish, navigate, uri, isEdit, filePath } = this.props; const contentLabel = isEdit ? 'Update published' : 'File published'; const publishMessage = isEdit ? 'update is now' : 'file is now'; function handleClose() { clearPublish(); closeModal(); } return (
{filePath && !IS_WEB && (

{__( `Upload will continue in the background, please do not shut down immediately. Leaving the app running helps the network, thank you!` )}{' '}