"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const isVariantLabel = require("./dist-es-render-utils-is-variant-label.cjs");
const isControllingVariants = require("./dist-es-render-utils-is-controlling-variants.cjs");
function getCurrentTreeVariants(props, context) {
  if (isControllingVariants.isControllingVariants(props)) {
    const { initial, animate } = props;
    return {
      initial: initial === false || isVariantLabel.isVariantLabel(initial) ? initial : void 0,
      animate: isVariantLabel.isVariantLabel(animate) ? animate : void 0
    };
  }
  return props.inherit !== false ? context : {};
}
exports.getCurrentTreeVariants = getCurrentTreeVariants;
//# sourceMappingURL=dist-es-context-MotionContext-utils.cjs.map
