import { createRendererMotionComponent } from "./dist-es-motion-index.js";
import { isSVGComponent } from "./dist-es-render-dom-utils-is-svg-component.js";
import { svgMotionConfig } from "./dist-es-render-svg-config-motion.js";
import { htmlMotionConfig } from "./dist-es-render-html-config-motion.js";
import { createUseRender } from "./dist-es-render-dom-use-render.js";
function createMotionComponentFactory(preloadedFeatures, createVisualElement) {
  return function createMotionComponent(Component, { forwardMotionProps } = { forwardMotionProps: false }) {
    const baseConfig = isSVGComponent(Component) ? svgMotionConfig : htmlMotionConfig;
    const config = {
      ...baseConfig,
      preloadedFeatures,
      useRender: createUseRender(forwardMotionProps),
      createVisualElement,
      Component
    };
    return createRendererMotionComponent(config);
  };
}
export {
  createMotionComponentFactory
};
//# sourceMappingURL=dist-es-render-components-create-factory.js.map
