import { jsxDEV } from "react/jsx-dev-runtime";
import { useSelected } from "slate-react";
import { BlockElement } from "../../../baseEditor/BlockElement.js";
const HorizontalRuleRenderer = (props) => {
  const isSelected = useSelected();
  return /* @__PURE__ */ jsxDEV(BlockElement, { element: props.element, attributes: props.attributes, withBoundaries: true, children: [
    /* @__PURE__ */ jsxDEV("span", { contentEditable: false, children: /* @__PURE__ */ jsxDEV(
      "hr",
      {
        style: {
          boxShadow: isSelected ? "0 0 0 0.2em rgba(0, 148, 255, 0.3)" : "none",
          backgroundColor: isSelected ? "black" : void 0
        }
      },
      void 0,
      false,
      {
        fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/richText/plugins/element/horizonalRules/HorizontalRuleRenderer.tsx",
        lineNumber: 17,
        columnNumber: 5
      },
      void 0
    ) }, void 0, false, {
      fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/richText/plugins/element/horizonalRules/HorizontalRuleRenderer.tsx",
      lineNumber: 16,
      columnNumber: 4
    }, void 0),
    props.children
  ] }, void 0, true, {
    fileName: "/__w/interface/interface/packages/admin/src/components/bindingFacade/richText/plugins/element/horizonalRules/HorizontalRuleRenderer.tsx",
    lineNumber: 15,
    columnNumber: 3
  }, void 0);
};
HorizontalRuleRenderer.displayName = "HorizontalRuleRenderer";
export {
  HorizontalRuleRenderer
};
//# sourceMappingURL=HorizontalRuleRenderer.js.map
