import * as React from "react";

interface IProps {
    image: string;
    // title: React.ReactElement<any>;
    title: string;
    subTitle: string;
    viewButton: React.ReactElement<any>;
}

export class Banner extends React.Component<IProps> {
  public render(): JSX.Element {
    return (
    <div className="banner afclr">
        <img src={this.props.image}/>
        <div className="banner_text_block afclr">
            <div className="container">
                {/* tslint:disable-next-line */}
                <h1 dangerouslySetInnerHTML={{__html: this.props.title}} />
                {/* tslint:disable-next-line */}
                <h2 dangerouslySetInnerHTML={{__html: this.props.subTitle}} />
                <div className="banner_button afclr">
                    {this.props.viewButton}
                </div>
            </div>
        </div>
    </div>
    );
  }
}
