// @flow import React from 'react'; import ButtonTransaction from 'component/common/transaction-link'; import moment from 'moment'; 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')}

{__( 'Reward history is tied to your email. In case of lost or multiple wallets, your balance may differ from the amounts claimed' )} .

{rewards.reverse().map(reward => ( ))}
{__('Title')} {__('Amount')} {__('Transaction')} {__('Date')}
{reward.reward_title} {reward.reward_amount} {reward.transaction_id && } {moment(reward.created_at).format('LLL')}
); }; export default RewardListClaimed;