import{useContext as t,useEffect as e}from"react";import{__read as o}from"../../../../node_modules/tslib/tslib.es6.js";import{PresenceContext as n}from"../../context/PresenceContext.js";import{usePresence as r}from"../../components/AnimatePresence/use-presence.js";import{AnimationType as i}from"../../render/utils/types.js";import{makeRenderlessComponent as s}from"../utils/make-renderless-component.js";import{checkShouldInheritVariant as m}from"../utils/should-inherit-variant.js";var u=s((function(s){var m=s.custom,u=s.visualElement,l=o(r(),2),c=l[0],p=l[1],a=t(n);e((function(){var t,e,o=null===(t=u.animationState)||void 0===t?void 0:t.setActive(i.Exit,!c,{custom:null!==(e=null==a?void 0:a.custom)&&void 0!==e?e:m});!c&&(null==o||o.then(p))}),[c])})),l={key:"exit",shouldRender:function(t){return!!t.exit&&!m(t)},getComponent:function(){return u}};export{l as Exit};
//# sourceMappingURL=exit.js.map
