"use strict";

exports.__esModule = true;
exports.BlogSubscribe = void 0;

var _react = _interopRequireDefault(require("react"));

var _reactHubspotForm = _interopRequireDefault(require("react-hubspot-form"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var BlogSubscribe = function BlogSubscribe(_ref) {
  var hubspotPortalId = _ref.hubspotPortalId,
      hubspotFormId = _ref.hubspotFormId,
      children = _ref.children;
  return _react.default.createElement(_react.default.Fragment, null, _react.default.createElement("div", {
    className: "title"
  }, "Subscribe"), _react.default.createElement("div", {
    className: "blog-subscribe"
  }, _react.default.createElement("p", null, children), _react.default.createElement(_reactHubspotForm.default, {
    submitButtonClass: "black button small hover_blue",
    portalId: hubspotPortalId,
    formId: hubspotFormId
  })));
};

BlogSubscribe.displayName = 'Blog Subscribe';
var BlogSubscribeDoc;

if (process.env.NODE_ENV !== 'production') {
  // eslint-disable-next-line global-require
  BlogSubscribeDoc = require('./doc').doc(BlogSubscribe);
}

var BlogSubscribeWrapper = BlogSubscribeDoc || BlogSubscribe;
exports.BlogSubscribe = BlogSubscribeWrapper;