import*as r from"react";import{useCallbackRef as e}from"./use-callback-ref.js";function o(o,t){var i=e(o);r.useEffect((()=>{if(null!=t){var r;return r=window.setTimeout((()=>{i()}),t),()=>{r&&window.clearTimeout(r)}}}),[t,i])}export{o as useTimeout};
//# sourceMappingURL=use-timeout.js.map
