Module 586243

356 characters · in bcd663496c792ba1.js
Dependencies
Required by (1)
Lazily required by (0)none
Requires (3)
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>r});var i=n(64700),s=n(181658),l=n(493540);function r(e){let[t,n]=i.useState(),[r,a]=i.useState(!1),[o,d]=i.useState(!1);return{error:t,loading:r,createEnableRequest:i.useCallback(async()=>{if(null!=e){a(!0),n(void 0),d(!1);try{await l.gO(e),d(!0)}catch(e){n(new s.A(e))}finally{a(!1)}}},[e]),submittedRequest:o}}}