lbry-desktop/ui/modal/modalMembershipSplash/view.jsx

26 lines
580 B
React
Raw Normal View History

// @flow
import React from 'react';
import { Modal } from 'modal/modal';
import MembershipSplash from 'component/membershipSplash';
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">
<MembershipSplash uri={uri} claimIsMine={claimIsMine} onCancel={closeModal} />
</Modal>
);
}
}
export default ModalSendTip;