UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 413 B
import{a as n}from"./chunk-B67T4Z5G.js";import{a as r}from"./chunk-KE2WE66O.js";import{a as t}from"./chunk-534JQDGS.js";import{m as o}from"./chunk-HBP5N4FR.js";o();import{useIdleTimer as c}from"react-idle-timer";var p=e=>1e3*60*e,g=500,R=({minutes:e=10,onLogout:s})=>{let m=r(),i=n(m),u=s||t,d=p(e);c({timeout:d,onIdle:()=>{i.current&&u()},debounce:g})};export{R as a}; //# sourceMappingURL=chunk-2P4BOZDT.js.map