import React from 'react'; import ProgressBar from 'components/ProgressBar'; import * as publishStates from 'constants/publish_claim_states'; class PublishStatus extends React.Component { render () { const { status, message, clearFile } = this.props; return (
{status === publishStates.LOAD_START &&

File is loading to server

0%

} {status === publishStates.LOADING &&

File is loading to server

{message}

} {status === publishStates.PUBLISHING &&

Upload complete. Your file is now being published on the blockchain...

Curious what magic is happening here? Learn more.

} {status === publishStates.SUCCESS &&

Your publish is complete! You are being redirected to it now.

If you are not automatically redirected, click here.

} {status === publishStates.FAILED &&

Something went wrong...

{message}

For help, post the above error text in the #speech channel on the lbry discord

}
); } }; export default PublishStatus;