// @flow import React from 'react'; import { Modal } from 'modal/modal'; type Props = { closeModal: () => void, clearPublish: () => void, navigate: string => void, uri: string, isEdit: boolean, }; class ModalPublishSuccess extends React.PureComponent { render() { const { closeModal, clearPublish, navigate, uri, isEdit } = this.props; const contentLabel = isEdit ? 'Updates published' : 'File published'; const publishMessage = isEdit ? 'updates have been' : 'file has been'; const publishType = isEdit ? 'updates' : 'file'; return ( { clearPublish(); navigate('/$/published'); closeModal(); }} confirmButtonLabel={'Show me!'} abortButtonLabel={'Thanks!'} onAborted={() => { clearPublish(); closeModal(); }} >

{__(`Your ${publishMessage} published to LBRY at the address`)}

{uri}

{__( `The ${publishType} will take a few minutes to appear for other LBRY users. Until then it will be listed as "pending" under your published files.` )}

); } } export default ModalPublishSuccess;