import{useEffect as t}from"react";import{makeRenderlessComponent as n}from"../utils/make-renderless-component.js";import{isAnimationControls as i}from"../../animation/animation-controls.js";import{createAnimationState as e}from"../../render/utils/animation-state.js";var a=n((function(n){var a=n.visualElement,o=n.animate;a.animationState||(a.animationState=e(a)),i(o)&&t((function(){return o.subscribe(a)}),[o])})),o={key:"animation",shouldRender:function(){return!0},getComponent:function(t){var n=t.animate,i=t.whileHover,e=t.whileFocus,o=t.whileTap,r=t.whileDrag,m=t.exit,s=t.variants;return n||i||e||o||r||m||s?a:void 0}};export{o as Animation};
//# sourceMappingURL=animation.js.map
