"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 /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
    className: "title"
  }, "Subscribe"), /*#__PURE__*/_react.default.createElement("div", {
    className: "blog-subscribe"
  }, /*#__PURE__*/_react.default.createElement("p", null, children), /*#__PURE__*/_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;