// @flow import React from 'react'; import ButtonTransaction from 'component/common/transaction-link'; import moment from 'moment'; import LbcSymbol from 'component/common/lbc-symbol'; import Card from 'component/common/card'; type Reward = { id: string, reward_title: string, reward_amount: number, transaction_id: string, created_at: string, }; type Props = { rewards: Array, }; const RewardListClaimed = (props: Props) => { const { rewards } = props; if (!rewards || !rewards.length) { return null; } return ( {__('Claimed Rewards')}} subtitle={
{__( 'Reward history is tied to your email. In case of lost or multiple wallets, your balance may differ from the amounts claimed' )}
} isBodyList body={
{rewards.reverse().map(reward => ( ))}
{__('Title')} {__('Transaction')} {__('Date')}
{reward.reward_title} {reward.reward_amount} {reward.transaction_id && } {moment(reward.created_at).format('LLL')}
} /> ); }; export default RewardListClaimed;