mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
* am I done? * post diff * unused selector cleanup * missed commit * mess with button styles * fix flow Co-authored-by: Jeremy Kauffman <jeremy@lbry.io> Co-authored-by: Sean Yesmunt <sean@lbry.io>
32 lines
743 B
JavaScript
32 lines
743 B
JavaScript
// @flow
|
|
import * as PAGES from 'constants/pages';
|
|
import * as CS from 'constants/claim_search';
|
|
import React from 'react';
|
|
import ClaimUri from 'component/claimUri';
|
|
import Button from 'component/button';
|
|
|
|
type Props = {
|
|
uri: string,
|
|
claim: ?Claim,
|
|
};
|
|
|
|
function FileRenderHeader(props: Props) {
|
|
const { uri, claim } = props;
|
|
|
|
return (
|
|
<div>
|
|
<ClaimUri uri={uri} />
|
|
|
|
{claim.meta.reposted > 0 && (
|
|
<Button
|
|
button="link"
|
|
className="media__uri--right"
|
|
label={__('View %count% reposts', { count: claim.meta.reposted })}
|
|
navigate={`/$/${PAGES.DISCOVER}?${CS.REPOSTED_URI_KEY}=${encodeURIComponent(uri)}`}
|
|
/>
|
|
)}
|
|
</div>
|
|
);
|
|
}
|
|
|
|
export default FileRenderHeader;
|