import { useSpring as n } from "./index-react-spring_core.modern.js";
import { ANIMATED_CONDITIONAL_DEFAULT as a } from "./index-timings.js";
const p = (i, o) => n({
  to: {
    opacity: i ? 1 : 0
  },
  config: {
    duration: a
  },
  onStart: () => {
    i && o(i);
  },
  onResolve: () => {
    i || setTimeout(() => {
      o(i);
    }, 0);
  }
}), u = (i, o, t) => n({
  width: i ? `${o}px` : `${t}px`,
  config: {
    duration: 150
  }
}), f = (i, o, t) => n({
  height: i ? `${o}px` : `${t}px`,
  opacity: i ? "1" : "0",
  visibility: i ? "visible" : "hidden",
  config: {
    duration: 150
  }
});
export {
  p as animationConditionalBaseAnimation,
  u as animationConditionalGrowWidth,
  f as animationConditionalgrowHeight
};
