import _extends from "@babel/runtime/helpers/extends";
import React, { forwardRef } from 'react';
import { isSSR } from '../core-utils/is-ssr';
import { isSSRStreaming } from '../core-utils/is-ssr-streaming';

/**
 * A component that serves as a placeholder for the content DOM of a ProseMirror NodeView.
 * It forwards a ref to the underlying div element, which can be used to access the content DOM for rendering the NodeView's content.
 */
export var NodeViewContentHole = /*#__PURE__*/forwardRef(function (props, ref) {
  return /*#__PURE__*/React.createElement("div", _extends({}, props, {
    ref: ref,
    "data-ssr-content-dom-ref": isSSR() && isSSRStreaming() ? '' : undefined
  }));
});