import { createElement } from "react";
const onClick = (e) => {
  window.open(e.currentTarget.href, "_blank");
};
const style = {
  cursor: "pointer"
};
const AnchorRenderer = (props) => /* @__PURE__ */ createElement("a", {
  ...props.attributes,
  href: props.element.href,
  title: props.element.href,
  target: "_blank",
  rel: "noopener noreferrer",
  onClickCapture: onClick,
  style
}, props.children);
AnchorRenderer.displayName = "AnchorRenderer";
export { AnchorRenderer };
//# sourceMappingURL=AnchorRenderer.js.map
