import React from 'react';
import { Modal } from 'modal/modal';
import Link from 'component/link/index';
import UserEmailNew from 'component/userEmailNew';
import UserEmailVerify from 'component/userEmailVerify';
class ModalEmailCollection extends React.PureComponent {
renderInner() {
const { closeModal, email, user } = this.props;
const cancelButton = ;
if (!user.has_verified_email && !email) {
return ;
} else if (!user.has_verified_email) {
return ;
}
closeModal();
}
render() {
const { user } = this.props;
// this shouldn't happen
if (!user) {
return null;
}
return (
Can We Stay In Touch?
{this.renderInner()}
);
}
}
export default ModalEmailCollection;