mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-19 07:30:54 +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);
|
|
}
|