MCPcopy Create free account
hub / github.com/Noumena-Network/code / update

Function update

src/components/PromptInput/PromptInputFooterLeftSide.tsx:89–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 return;
88 }
89 const update = function update() {
90 const remaining = Math.max(0, Math.ceil((nextTickAt - Date.now()) / 1000));
91 setRemainingSeconds(remaining);
92 };
93 update();
94 const interval = setInterval(update, 1000);
95 return () => clearInterval(interval);

Callers 1

ProactiveCountdownFunction · 0.70

Calls 1

maxMethod · 0.80

Tested by

no test coverage detected