// @flow import * as ICONS from 'constants/icons'; import React from 'react'; import Icon from 'component/common/icon'; import RewardLink from 'component/rewardLink'; import Button from 'component/button'; import Card from 'component/common/card'; import { rewards } from 'lbryinc'; type Props = { openRewardCodeModal: () => void, reward: { id: string, reward_title: string, reward_amount: number, reward_range?: string, transaction_id: string, created_at: string, reward_description: string, reward_type: string, }, }; const RewardTile = (props: Props) => { const { reward, openRewardCodeModal } = props; const claimed = !!reward.transaction_id; return ( {reward.reward_type === rewards.TYPE_GENERATED_CODE && (