// @flow import React from 'react'; import Button from 'component/button'; import { Form } from 'component/common/form'; import { Modal } from 'modal/modal'; type Props = { 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 } = this.props; return (
this.onConfirmed()}>

{__(isSupport ? 'Supporting: ' : 'Tipping: ')}

{tipAmount} LBC

{__('To: ')}

{title}
); } } export default ModalConfirmSendTip;