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

21 lines
354 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-02 22:08:37 +02:00
return <LbcSymbol prefix={claim.meta.effective_amount} />;
}
2020-09-02 22:08:37 +02:00
export default ClaimEffectiveAmount;