25 lines
559 B
JavaScript
25 lines
559 B
JavaScript
// @flow
|
|
import React from 'react';
|
|
import { Modal } from 'modal/modal';
|
|
import SendTip from 'component/walletSendTip';
|
|
|
|
type Props = {
|
|
closeModal: () => void,
|
|
uri: string,
|
|
claimIsMine: boolean,
|
|
isSupport: boolean,
|
|
};
|
|
|
|
class ModalSendTip extends React.PureComponent<Props> {
|
|
render() {
|
|
const { closeModal, uri, claimIsMine } = this.props;
|
|
|
|
return (
|
|
<Modal onAborted={closeModal} isOpen type="card">
|
|
<SendTip uri={uri} claimIsMine={claimIsMine} onCancel={closeModal} />
|
|
</Modal>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default ModalSendTip;
|