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

21 lines
355 B
React
Raw Normal View History

// @flow
import React from 'react';
2020-09-02 22:08:37 +02:00
import LbcSymbol from 'component/common/lbc-symbol';
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;
}
2020-09-10 17:54:41 +02:00
return <LbcSymbol postfix={claim.meta.effective_amount} />;
}
2020-09-02 22:08:37 +02:00
export default ClaimEffectiveAmount;