import React from "react"; import { BusyMessage, CreditAmount } from "component/common"; import { Form, FormRow, Submit } from "component/form.js"; class FormInviteNew extends React.PureComponent { constructor(props) { super(props); this.state = { email: "", }; } handleEmailChanged(event) { this.setState({ email: event.target.value, }); } handleSubmit() { const { email } = this.state; this.props.inviteNew(email); } render() { const { errorMessage, isPending } = this.props; return (
{ this.handleEmailChanged(event); }} />
); } } class InviteNew extends React.PureComponent { render() { const { errorMessage, invitesRemaining, inviteNew, inviteStatusIsPending, isPending, rewardAmount, } = this.props; return (

{__("Invite a Friend")}

{/*
{invitesRemaining > 0 &&

{__("You have %s invites remaining.", invitesRemaining)}

} {invitesRemaining <= 0 &&

{__("You have no invites.")}

}
*/}

{__( "Or an enemy. Or your cousin Jerry, who you're kind of unsure about." )}

); } } export default InviteNew;