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