'use client';
import{useState as t,useEffect as e}from"react";let r=(r,o)=>{let[u,a]=t(!1);return e(()=>{let t;return r&&!u?a(!0):!r&&u&&(t=setTimeout(()=>a(!1),o)),()=>{clearTimeout(t)}},[o,r,u]),u};export{r as default};
