2020-02-12 16:10:17 +01:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
2020-09-02 22:08:37 +02:00
|
|
|
import LbcSymbol from 'component/common/lbc-symbol';
|
2020-02-12 16:10:17 +01:00
|
|
|
|
|
|
|
type Props = {
|
|
|
|
uri: string,
|
|
|
|
claim: ?Claim,
|
|
|
|
};
|
|
|
|
|
2020-09-02 22:08:37 +02:00
|
|
|
function ClaimEffectiveAmount(props: Props) {
|
2020-02-12 16:10:17 +01:00
|
|
|
const { claim } = props;
|
|
|
|
|
|
|
|
if (!claim) {
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
2020-09-10 17:54:41 +02:00
|
|
|
return <LbcSymbol postfix={claim.meta.effective_amount} />;
|
2020-02-12 16:10:17 +01:00
|
|
|
}
|
|
|
|
|
2020-09-02 22:08:37 +02:00
|
|
|
export default ClaimEffectiveAmount;
|