{ "version": 3, "sources": ["../../../../../../owl-nest/ulule/features/project/src/public/views/detail/hooks/useListLoadingIndicator.ts"], "sourcesContent": ["import * as React from 'react'\n\ntype Load = [boolean, () => void]\n\nexport function useListLoadingIndicator(elementToWatch: number | undefined): Load {\n const [isLoading, setIsLoading] = React.useState(false)\n\n React.useEffect(() => {\n setIsLoading(false)\n }, [elementToWatch])\n\n return [isLoading, () => setIsLoading(true)]\n}\n"], "mappings": "uGAAAA,IAAAC,IAAA,IAAAC,EAAuB,OAIhB,SAASC,EAAwBC,EAA0C,CAChF,GAAM,CAACC,EAAWC,CAAY,EAAU,WAAS,EAAK,EAEtD,OAAM,YAAU,IAAM,CACpBA,EAAa,EAAK,CACpB,EAAG,CAACF,CAAc,CAAC,EAEZ,CAACC,EAAW,IAAMC,EAAa,EAAI,CAAC,CAC7C", "names": ["init_define_process_env", "init_sentry_release_injection_stub", "React", "useListLoadingIndicator", "elementToWatch", "isLoading", "setIsLoading"] }