import { isControllingVariants } from "../../render/utils/is-controlling-variants.js";
import { isVariantLabel } from "../../render/utils/is-variant-label.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=utils.js.map
