"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=require("react");function l(t,u){const[e,r]=n.useState(!1);return n.useEffect(()=>{let s;return t&&!e?r(!0):!t&&e&&(s=window.setTimeout(()=>r(!1),u)),()=>clearTimeout(s)},[t,u,e]),e}exports.useDelayUnmount=l;
