// @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'; export const PAGE_VIEW_QUERY = 'view'; type Props = { history: Array, doClearContentHistoryAll: () => void, }; export default function WatchHistoryPage(props: Props) { const { history, doClearContentHistoryAll } = props; const [unavailableUris] = React.useState([]); const watchHistory = []; for (let entry of history) { if (entry.uri.indexOf('@') !== -1) { watchHistory.push(entry.uri); } } function clearHistory() { doClearContentHistoryAll(); } return (

{__('Watch History')}

{watchHistory.length > 0 && (
{watchHistory.length > 0 && } {watchHistory.length === 0 && (

{__('Nothing here')}

)}
); }