import React from "react";
import { useReactNodeView } from "./use-react-node-view.js";
const NodeViewWrapper = React.forwardRef((props, ref) => {
  const { onDragStart } = useReactNodeView();
  const Tag = props.as || "div";
  return /* @__PURE__ */ React.createElement(
    Tag,
    {
      ...props,
      ref,
      "data-node-view-wrapper": "",
      onDragStart,
      style: {
        whiteSpace: "normal",
        ...props.style
      }
    }
  );
});
NodeViewWrapper.displayName = "NodeViewWrapper";
export {
  NodeViewWrapper
};
//# sourceMappingURL=node-view-wrapper.js.map
