// @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

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