"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _button = _interopRequireDefault(require("../../atom/button"));
var _style = _interopRequireDefault(require("./style.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const Go1Banner = props => {
  const {
    image,
    title,
    subTitle,
    onClick,
    submitValue
  } = props;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.background,
    "data-name": "go1-banner"
  }, /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.textSection
  }, /*#__PURE__*/_react.default.createElement("span", {
    className: _style.default.title
    // eslint-disable-next-line react/no-danger
    ,
    dangerouslySetInnerHTML: {
      __html: title
    }
  }), /*#__PURE__*/_react.default.createElement("span", {
    className: _style.default.subTitle
    // eslint-disable-next-line react/no-danger
    ,
    dangerouslySetInnerHTML: {
      __html: subTitle
    }
  }), /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.buttonWrapper
  }, /*#__PURE__*/_react.default.createElement(_button.default, {
    type: "link",
    "data-name": "learn-more-button",
    onClick: onClick,
    submitValue: submitValue,
    className: _style.default.ctaButton,
    style: {
      backgroundColor: '#D5FD42'
    }
  }))), /*#__PURE__*/_react.default.createElement("img", {
    className: _style.default.image,
    src: image
  }));
};
Go1Banner.propTypes = process.env.NODE_ENV !== "production" ? {
  image: _propTypes.default.string,
  title: _propTypes.default.string,
  subTitle: _propTypes.default.string,
  onClick: _button.default.propTypes.onClick,
  submitValue: _button.default.propTypes.submitValue
} : {};
var _default = exports.default = Go1Banner;
//# sourceMappingURL=index.js.map