// @flow import React from 'react'; import Icon from 'component/common/icon'; import RewardLink from 'component/rewardLink'; import { rewards } from 'lbryinc'; import * as icons from 'constants/icons'; type Props = { invitees: ?Array<{ email: string, invite_accepted: boolean, invite_reward_claimed: boolean, invite_reward_claimable: boolean, }>, }; class InviteList extends React.PureComponent { render() { const { invitees } = this.props; if (!invitees) { return null; } return (

{__('Invite History')}

{invitees.length === 0 && ( {__("You haven't invited anyone.")} )} {invitees.length > 0 && ( {invitees.map(invitee => ( ))}
{__('Invitee Email')} {__('Invite Status')} {__('Reward')}
{invitee.email} {invitee.invite_accepted ? ( ) : ( {__('unused')} )} {invitee.invite_reward_claimed ? ( ) : invitee.invite_reward_claimable ? ( ) : ( {__('unclaimable')} )}
)}
{__( 'The maximum number of invite rewards is currently limited. Invite reward can only be claimed if the invitee passes the humanness test.' )}
); } } export default InviteList;