// @flow import React, { useEffect } from 'react'; import Button from 'component/button'; import ClaimList from 'component/claimList'; import Page from 'component/page'; import Paginate from 'component/common/paginate'; import { PAGE_SIZE } from 'constants/claim'; import WebUploadList from 'component/webUploadList'; import Spinner from 'component/spinner'; type Props = { checkPendingPublishes: () => void, clearPublish: () => void, fetchClaimListMine: () => void, fetching: boolean, urls: Array, urlTotal: ?number, history: { replace: string => void }, page: number, }; function FileListPublished(props: Props) { const { checkPendingPublishes, clearPublish, fetchClaimListMine, fetching, urls, urlTotal } = props; useEffect(() => { checkPendingPublishes(); fetchClaimListMine(); }, [checkPendingPublishes, fetchClaimListMine]); return ( {urls && Boolean(urls.length) && ( clearPublish()} /> } /> )} {!(urls && urls.length) && ( {!fetching ? (

{__('Nothing published to LBRY yet.')}

) : (

{__('Checking your publishes')}

)}
)}
); } export default FileListPublished;