// @flow import * as icons from 'constants/icons'; import * as React from 'react'; import { parseURI } from 'lbry-redux'; import Icon from 'component/common/icon'; import FilePrice from 'component/filePrice'; type Props = { uri: string, downloaded: boolean, claimIsMine: boolean, isSubscribed: boolean, isNew: boolean, rewardedContentClaimIds: Array, }; export default function FileProperties(props: Props) { const { uri, downloaded, claimIsMine, rewardedContentClaimIds, isSubscribed } = props; const { claimId } = parseURI(uri); const isRewardContent = rewardedContentClaimIds.includes(claimId); return (
{isSubscribed && } {!claimIsMine && downloaded && } {isRewardContent && }
); }