mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-21 08:32:05 +00:00
10 lines
260 B
TypeScript
10 lines
260 B
TypeScript
![]() |
import { useContext } from 'react';
|
||
|
import { EntityRegistryContext } from '../entityRegistryContext';
|
||
|
|
||
|
/**
|
||
|
* Fetch an instance of EntityRegistry from the React context.
|
||
|
*/
|
||
|
export function useEntityRegistry() {
|
||
|
return useContext(EntityRegistryContext);
|
||
|
}
|