// @flow import React from 'react'; import { Modal } from 'modal/modal'; import Button from 'component/button'; type Reward = { reward_amount: number, }; type Props = { isPending: boolean, label: ?string, errorMessage: ?string, reward: Reward, button: ?boolean, clearError: Reward => void, claimReward: Reward => void, }; const RewardLink = (props: Props) => { const { reward, claimReward, clearError, errorMessage, label, isPending, button } = props; return !reward ? null : (
); }; export default RewardLink;