"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const React = require("react");
const index = require("./dist-es-context-MotionContext-index.cjs");
const utils = require("./dist-es-context-MotionContext-utils.cjs");
function useCreateMotionContext(props) {
  const { initial, animate } = utils.getCurrentTreeVariants(props, React.useContext(index.MotionContext));
  return React.useMemo(() => ({ initial, animate }), [variantLabelsAsDependency(initial), variantLabelsAsDependency(animate)]);
}
function variantLabelsAsDependency(prop) {
  return Array.isArray(prop) ? prop.join(" ") : prop;
}
exports.useCreateMotionContext = useCreateMotionContext;
//# sourceMappingURL=dist-es-context-MotionContext-create.cjs.map
