import { useService } from '@cloudbeaver/core-di' ; import { DBObjectResource } from './DBObjectResource' ; export function useDatabaseObjectInfo ( navNodeId ) { const dbObjectResource = useService ( DBObjectResource ) ; const dbObject = dbObjectResource . get ( navNodeId ) ; const isLoading = dbObjectResource . isDataLoading ( navNodeId ) ; const isLoaded = dbObjectResource . isLoaded ( navNodeId ) ; return { dbObject , isLoading , isLoaded } ; }