// Metro module 6667 (f6668). import { useEffect, useRef } from "react"; export default function useTimeout(a0, a1) { const current = a0; const ref = useRef(a0); useEffect(() => { ref.current = current; }, [a0]); useEffect(() => { if (a1 !== null) { let c25945_0 = setTimeout(() => ref.current(), a1); return () => clearTimeout(c25945_0); } }, [a1, ref]); };