import { checkIfControllingVariants, isVariantLabel } from "../../render/utils/variants.js";
function getCurrentTreeVariants(props, context) {
  if (checkIfControllingVariants(props)) {
    var initial = props.initial, animate = props.animate;
    return {
      initial: initial === false || isVariantLabel(initial) ? initial : void 0,
      animate: isVariantLabel(animate) ? animate : void 0
    };
  }
  return props.inherit !== false ? context : {};
}
export {
  getCurrentTreeVariants
};
//# sourceMappingURL=utils.js.map
