lbry-desktop/ui/component/claimEffectiveAmount/view.jsx

21 lines
414 B
React
Raw Normal View History

// @flow
import React from 'react';
2020-09-16 18:26:14 +02:00
import CreditAmount from 'component/common/credit-amount';
type Props = {
uri: string,
claim: ?Claim,
};
2020-09-02 22:08:37 +02:00
function ClaimEffectiveAmount(props: Props) {
const { claim } = props;
if (!claim) {
return null;
}
return <CreditAmount amount={Number(claim.repost_bid_amount || claim.meta.effective_amount || claim.amount)} />;
}
2020-09-02 22:08:37 +02:00
export default ClaimEffectiveAmount;