import{forwardRef as e,useContext as t,createElement as o,Fragment as r}from"react";import{MotionConfigContext as n}from"../context/MotionConfigContext.js";import{useFeatures as i}from"./features/use-features.js";import{MotionContext as u}from"../context/MotionContext/index.js";import{useVisualElement as s}from"./utils/use-visual-element.js";import{useMotionRef as m}from"./utils/use-motion-ref.js";import{useCreateMotionContext as l}from"../context/MotionContext/create.js";function a(a){var f=a.defaultFeatures,c=a.createVisualElement,p=a.useRender,v=a.useVisualState;return e((function(e,a){var x=t(n).isStatic,d=null,j=l(e,x),C=v(e,x);return x||"undefined"==typeof window||(j.visualElement=s(x,C,c,e),d=i(f,j.visualElement,e)),o(r,null,o(u.Provider,{value:j},p(e,m(C,j.visualElement,a),C,x)),d)}))}export{a as createMotionComponent};
//# sourceMappingURL=index.js.map
