// @flow import React from 'react'; import { parseURI } from 'lbry-redux'; import Button from 'component/button'; import { Form } from 'component/common/form'; import { Modal } from 'modal/modal'; import Card from 'component/common/card'; type Props = { uri: string, claimId: string, title: string, tipAmount: number, isSupport: boolean, closeModal: () => void, sendSupport: (number, string, boolean) => void, }; class ModalConfirmSendTip extends React.PureComponent { onConfirmed() { const { closeModal, sendSupport, tipAmount, claimId, isSupport } = this.props; sendSupport(tipAmount, claimId, isSupport); closeModal(); } render() { const { tipAmount, title, isSupport, closeModal, uri } = this.props; const cardTitle = __(isSupport ? 'Confirm Support' : 'Confirm Tip'); const { channelName } = parseURI(uri); return (
this.onConfirmed()}>
{tipAmount} LBC
{title || channelName}
} actions={
} />
); } } export default ModalConfirmSendTip;