2018-03-26 14:32:43 -07:00
|
|
|
// @flow
|
|
|
|
import React from 'react';
|
|
|
|
import { Modal } from 'modal/modal';
|
|
|
|
import SendTip from 'component/walletSendTip';
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
closeModal: () => void,
|
|
|
|
uri: string,
|
2019-07-16 23:23:45 -04:00
|
|
|
claimIsMine: boolean,
|
2019-07-19 16:21:41 -04:00
|
|
|
isSupport: boolean,
|
2018-03-26 14:32:43 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
class ModalSendTip extends React.PureComponent<Props> {
|
|
|
|
render() {
|
2020-06-08 14:42:29 -04:00
|
|
|
const { closeModal, uri, claimIsMine } = this.props;
|
2018-03-26 14:32:43 -07:00
|
|
|
|
|
|
|
return (
|
2020-02-12 13:59:48 -05:00
|
|
|
<Modal onAborted={closeModal} isOpen type="card">
|
2020-06-08 14:42:29 -04:00
|
|
|
<SendTip uri={uri} claimIsMine={claimIsMine} onCancel={closeModal} />
|
2018-03-26 14:32:43 -07:00
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ModalSendTip;
|