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