import React from 'react'; import ProgressBar from '../components/ProgressBar.jsx'; const LOAD_START = 'LOAD_START'; const LOADING = 'LOADING'; const PUBLISHING = 'PUBLISHING'; const SUCCESS = 'SUCCESS'; const FAILED = 'FAILED'; function PublishStatus ({ status, message }) { return (
{(status === LOAD_START) &&

File is loading to server

{message}

} {(status === LOADING) &&

File is loading to server

{message}

} {(status === PUBLISHING) &&

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

Curious what magic is happening here? Learn more.

} {(status === SUCCESS) &&
{message}
} {(status === FAILED) &&

Something went wrong...

{message}

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

}
); }; export default PublishStatus;