Build 541864stable
Module 279547
312 characters · in 1e0eebd2fa83d0b0.jsDependencies
Source Raw
function(t,e,n){n.d(e,{d:()=>a});var i=n(64700),l=n(845584);function a(t){let{onError:e,onSuccess:n,report:a}=t,[s,r]=i.useState(!1);return{reportFalsePositive:i.useCallback(async()=>{if(!s){r(!0);try{await a(),n?.()}catch(n){let t=new l.LG(n);e?.(t)}finally{r(!1)}}},[s,e,n,a]),isReportFalsePositiveLoading:s}}}