import React from 'react'; import PropTypes from 'prop-types'; import ProgressBar from 'components/ProgressBar'; import * as publishStates from 'constants/publishing_states'; function PublishStatus ({ status, message }) { return (
{(status === publishStates.LOAD_START) &&

File is loading to server

{message}

} {(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

}
); }; PublishStatus.propTypes = { status : PropTypes.string.isRequired, message: PropTypes.string, }; export default PublishStatus;