// @flow import * as ICONS from 'constants/icons'; import React from 'react'; import ButtonTransaction from 'component/common/transaction-link'; import CreditAmount from 'component/common/credit-amount'; import DateTime from 'component/dateTime'; import Button from 'component/button'; import Spinner from 'component/spinner'; import { buildURI, parseURI, TXO_LIST as TXO, TXO_ABANDON_STATES as TXO_STATES } from 'lbry-redux'; type Props = { txo: Txo, revokeClaim: (Txo, (string) => void) => void, isRevokeable: boolean, reward: ?{ reward_title: string, }, }; type State = { abandonState: string, }; class TxoListItem extends React.PureComponent { constructor() { super(); this.state = { abandonState: TXO_STATES.READY }; (this: any).abandonClaim = this.abandonClaim.bind(this); (this: any).getLink = this.getLink.bind(this); } getLink(type: string) { const { abandonState } = this.state; if (this.state.abandonState === TXO_STATES.PENDING) { return ; } if (type === TXO.SUPPORT) { return (