import { isVariantLabel } from "./dist-es-render-utils-is-variant-label.js";
import { isControllingVariants } from "./dist-es-render-utils-is-controlling-variants.js";
function getCurrentTreeVariants(props, context) {
  if (isControllingVariants(props)) {
    const { initial, animate } = props;
    return {
      initial: initial === false || isVariantLabel(initial) ? initial : void 0,
      animate: isVariantLabel(animate) ? animate : void 0
    };
  }
  return props.inherit !== false ? context : {};
}
export {
  getCurrentTreeVariants
};
//# sourceMappingURL=dist-es-context-MotionContext-utils.js.map
