import{useState as u,useCallback as e,useEffect as c}from"react";const f=({animate:n,show:o,onHidden:s,onShown:a})=>{const[i,t]=u(o),d=e(()=>a(),[]),r=e(()=>{t(!1),s()},[]);return c(()=>{o?t(!0):n||t(!1)},[o]),{displayed:i,onShow:d,onHide:r}};export{f as useDisplayState};
//# sourceMappingURL=useDisplayState.js.map
