import * as React from "react" ; import { RouteComponentProps } from "react-router-dom" ; import { CheckEmailSection , AuthPageFooterLink } from "./AuthStyledComponents" ; import { AuthTextEmailSent , AuthTextCheckSpam } from "./AuthTextComponents" ; export interface AccountEmailSentProps extends Partial < RouteComponentProps > { isNewUser : boolean ; emailAddress : string ; onSendAgain ? ( ) : void ; } export class AccountEmailSent extends React . Component < AccountEmailSentProps > { public render ( ) { const { emailAddress , onSendAgain } = this . props ; return ( < > < AuthTextEmailSent emailAddress = { emailAddress } / > < CheckEmailSection /> < AuthTextCheckSpam / > < AuthPageFooterLink > { } < a onClick = { onSendAgain } > Hey , I didn ’ t get an email . Can you send one again ? < /a> < /AuthPageFooterLink> < />); } }