lbry-desktop/ui/component/claimEffectiveAmount/view.jsx
2020-09-29 17:12:32 -04:00

20 lines
371 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)} />;
}
export default ClaimEffectiveAmount;