import React from "react"; import { BusyMessage, CreditAmount } from "component/common"; import Link from "component/link"; import { FormRow } 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(event) { event.preventDefault(); this.props.inviteNew(this.state.email); } render() { const { errorMessage, isPending } = this.props; return (
{ this.handleEmailChanged(event); }} />
{ this.handleSubmit(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;