// Module ID: 7719 // Function ID: 7720 // Name: useInterval // Dependencies: [19, 38, 2] // Exports: default // Module 7719 (useInterval) import noop from "module_19" /* 19 */; import size from "module_2" /* 2 */; ({ useEffect: c2, useRef: c3 } = noop); const result = size.fileFinishedImporting("hooks/useInterval.tsx"); export default function useInterval(current, arg1) { closure_1 = arg1; closure_2 = ref(current); ref = ref(null); const items = [current]; closure_2(() => { closure_2.current = current; }, items); const items1 = [arg1]; closure_2(() => { if (null !== closure_1) { const _setInterval = setInterval; ref.current = setInterval(() => { closure_0(closure_1[1])(null != ref.current, "Missing callback"); ref.current(); }, tmp); return () => clearInterval(ref2.current); } else if (null !== ref.current) { const _clearInterval = clearInterval; clearInterval(tmp2.current); tmp2.current = null; } }, items1); };