import{useMemo as r,useContext as i}from"react";import{MotionContext as t}from"./index.js";import{getCurrentTreeVariants as n}from"./utils.js";function o(o,e){var m=n(o,i(t)),u=m.initial,f=m.animate;return r((function(){return{initial:u,animate:f}}),e?[a(u),a(f)]:[])}function a(r){return Array.isArray(r)?r.join(" "):r}export{o as useCreateMotionContext};
//# sourceMappingURL=create.js.map
