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