import React from 'react';
import HubspotForm from 'react-hubspot-form';

var BlogSubscribe = function BlogSubscribe(_ref) {
  var hubspotPortalId = _ref.hubspotPortalId,
      hubspotFormId = _ref.hubspotFormId,
      children = _ref.children;
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
    className: "title"
  }, "Subscribe"), /*#__PURE__*/React.createElement("div", {
    className: "blog-subscribe"
  }, /*#__PURE__*/React.createElement("p", null, children), /*#__PURE__*/React.createElement(HubspotForm, {
    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;
export { BlogSubscribeWrapper as BlogSubscribe };