import * as React from "react";

interface IProps {
    heading: string;
    subHeading: string;
    submitButton: React.ReactElement<any>;
    emailTextbox: React.ReactElement<any>;
}

export class Newsletter extends React.Component<IProps> {
  public render(): JSX.Element {
    return (
        <div className="col-lg-12 footer_newsletter_section">
            <h4>{this.props.heading}</h4>
            <h2>{this.props.subHeading}</h2>
            <div className="newsletter_form col-lg-8 col-lg-offset-2">
                <form className="afclr">
                    {this.props.emailTextbox}
                    {this.props.submitButton}
                </form>
            </div>
        </div>
    );
  }
}
