// @flow import React from 'react'; import ClaimList from 'component/claimList'; import Page from 'component/page'; import Button from 'component/button'; import classnames from 'classnames'; import Icon from 'component/common/icon'; import * as ICONS from 'constants/icons'; import { YRBL_SAD_IMG_URL } from 'config'; import Tooltip from 'component/common/tooltip'; import useClaimListInfiniteScroll from 'effects/use-claimList-infinite-scroll'; export const PAGE_SIZE = 30; type Props = { historyUris: Array, doClearContentHistoryAll: () => void, doResolveUris: (uris: Array, returnCachedClaims: boolean, resolveReposts: boolean) => void, }; export default function WatchHistoryPage(props: Props) { const { historyUris, doClearContentHistoryAll, doResolveUris } = props; const { uris, page, isLoadingPage, bumpPage } = useClaimListInfiniteScroll( historyUris, doResolveUris, PAGE_SIZE, true ); function clearHistory() { doClearContentHistoryAll(); } return (

{__('Watch History')}

{uris.length > 0 && (
{uris.length > 0 && ( )} {uris.length === 0 && (

{__('Nothing here')}

)}
); }