"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 hrRule = element => {
  if (element.nodeName === 'HR') {
    return {
      id: _slugid.default.nice(),
      type: _constants.DIVIDER,
      children: [{
        id: _slugid.default.nice(),
        text: ''
      }]
    };
  }
  return;
};
var _default = exports.default = hrRule;