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