import{onMounted as e,shallowRef as t}from"vue";function n(n=10){let r=t(!1),i,a=()=>{clearTimeout(i)};return e(()=>{a()}),[r,(e,t)=>{a(),i=setTimeout(()=>{r.value=e,t&&t()},n)},a]}export{n as default};