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