"use strict";

exports.__esModule = true;
exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
var _style = _interopRequireDefault(require("./style.css"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
const CoorpmanagerBaseBanner = props => {
  const {
    image,
    title,
    subTitle,
    buttonLabel,
    onClick
  } = props;
  return /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.background,
    "data-name": "go1-base-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(_buttonLink.default, {
    "data-name": "learn-more-button",
    onClick: onClick,
    type: "primary",
    label: buttonLabel,
    icon: {
      position: 'right',
      faIcon: {
        name: 'arrow-right',
        color: 'white',
        size: 14
      }
    }
  }))), /*#__PURE__*/_react.default.createElement("div", {
    className: _style.default.imagePlaceholder
  }), /*#__PURE__*/_react.default.createElement("img", {
    className: _style.default.image,
    src: image
  }));
};
CoorpmanagerBaseBanner.propTypes = process.env.NODE_ENV !== "production" ? {
  image: _propTypes.default.string,
  title: _propTypes.default.string,
  subTitle: _propTypes.default.string,
  buttonLabel: _propTypes.default.string,
  onClick: _propTypes.default.func
} : {};
var _default = exports.default = CoorpmanagerBaseBanner;
//# sourceMappingURL=index.js.map