"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _slugid = _interopRequireDefault(require("slugid"));
var _constants = require("../constants");
const blockquoteRule = (element, parseChild) => {
  const {
    nodeName,
    childNodes
  } = element;
  if (nodeName === 'BLOCKQUOTE') {
    return {
      id: _slugid.default.nice(),
      type: _constants.BLOCKQUOTE,
      children: parseChild(childNodes)
    };
  }
  return;
};
var _default = exports.default = blockquoteRule;