github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/dashboard/frontend/src/hooks/useLoading.ts (about)

     1  import { useContext } from 'react'
     2  
     3  import {
     4    LoadingContext,
     5  } from '../contexts/loading'
     6  
     7  export const useLoading = () => {
     8    const loading = useContext(LoadingContext)
     9    return loading
    10  }
    11  
    12  export default useLoading