"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const jsxRuntime = require("react/jsx-runtime");
const slateReact = require("slate-react");
const BlockElement = require("../../../baseEditor/BlockElement.cjs");
const HorizontalRuleRenderer = (props) => {
  const isSelected = slateReact.useSelected();
  return /* @__PURE__ */ jsxRuntime.jsxs(BlockElement.BlockElement, { element: props.element, attributes: props.attributes, withBoundaries: true, children: [
    /* @__PURE__ */ jsxRuntime.jsx("span", { contentEditable: false, children: /* @__PURE__ */ jsxRuntime.jsx(
      "hr",
      {
        style: {
          boxShadow: isSelected ? "0 0 0 0.2em rgba(0, 148, 255, 0.3)" : "none",
          backgroundColor: isSelected ? "black" : void 0
        }
      }
    ) }),
    props.children
  ] });
};
HorizontalRuleRenderer.displayName = "HorizontalRuleRenderer";
exports.HorizontalRuleRenderer = HorizontalRuleRenderer;
//# sourceMappingURL=HorizontalRuleRenderer.cjs.map
