lbry-desktop/ui/component/claimEffectiveAmount/view.jsx
zeppi 99ab165a8f New repost flow
Clearer display of takeover amounts
Repost from empty search result, from top page, or from claim

review changes

final touches

bump

empty comment copy

they

emptier

validation cleanup

extra
2020-12-16 09:47:28 -05:00

20 lines
387 B
JavaScript

// @flow
import React from 'react';
import CreditAmount from 'component/common/credit-amount';
type Props = {
uri: string,
claim: ?Claim,
};
function ClaimEffectiveAmount(props: Props) {
const { claim } = props;
if (!claim) {
return null;
}
return <CreditAmount amount={Number(claim.meta.effective_amount || claim.amount)} />;
}
export default ClaimEffectiveAmount;