import { Fragment } from "react";
import { HTMLVisualElement } from "./dist-es-render-html-HTMLVisualElement.js";
import { SVGVisualElement } from "./dist-es-render-svg-SVGVisualElement.js";
import { isSVGComponent } from "./dist-es-render-dom-utils-is-svg-component.js";
const createDomVisualElement = (Component, options) => {
  return isSVGComponent(Component) ? new SVGVisualElement(options) : new HTMLVisualElement(options, {
    allowProjection: Component !== Fragment
  });
};
export {
  createDomVisualElement
};
//# sourceMappingURL=dist-es-render-dom-create-visual-element.js.map
