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

21 lines
414 B
React
Raw Normal View History

// @flow
import React from 'react';
2020-09-16 12:26:14 -04:00
import CreditAmount from 'component/common/credit-amount';
type Props = {
uri: string,
claim: ?Claim,
};
2020-09-02 16:08:37 -04: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 16:08:37 -04:00
export default ClaimEffectiveAmount;