"use strict";var e=require("react");const l=({animate:s,show:t,onHidden:n,onShown:i})=>{const[o,a]=e.useState(t),u=e.useCallback(()=>i(),[]),c=e.useCallback(()=>{a(!1),n()},[]);return e.useEffect(()=>{t?a(!0):s||a(!1)},[t]),{displayed:o,onShow:u,onHide:c}};exports.useDisplayState=l;
//# sourceMappingURL=useDisplayState.js.map
