import React from "react"; import { Icon } from "component/common"; import Modal from "component/modal"; import Link from "component/link"; const RewardLink = props => { const { reward, button, claimReward, clearError, errorMessage, isClaimed, isPending, } = props; return (
{isClaimed ? Reward claimed. : { claimReward(reward); }} />} {errorMessage ? { clearError(reward); }} > {errorMessage} : ""}
); }; export default RewardLink;