// Module ID: 14038 // Function ID: 14039 // Name: useRefreshLinkCodeOnExpiry // Dependencies: [19, 8414, 2] // Exports: default // Module 14038 (useRefreshLinkCodeOnExpiry) import noop from "noop"; const result = require("set").fileFinishedImporting("modules/parent_tools/hooks/useRefreshLinkCodeOnExpiry.tsx"); export default function useRefreshLinkCodeOnExpiry(arg0, arg1) { const importDefault = arg0; const tmp = importDefault(8414)(arg1); const dependencyMap = tmp; const items = [arg0, tmp]; const effect = React.useEffect(() => { if (null != timeout) { const _Date = Date; const diff = tmp - Date.now(); if (diff <= 0) { tmp(); } else { const _setTimeout = setTimeout; timeout = setTimeout(tmp, diff); return () => clearTimeout(closure_0); } } }, items); };