mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-13 19:57:12 +00:00
11 lines
446 B
TypeScript
11 lines
446 B
TypeScript
![]() |
import React from 'react';
|
||
|
import { EntityRegistryContext } from '../entityRegistryContext';
|
||
|
import useBuildEntityRegistry from './useBuildEntityRegistry';
|
||
|
|
||
|
const EntityRegistryProvider = ({ children }: { children: React.ReactNode }) => {
|
||
|
const entityRegistry = useBuildEntityRegistry();
|
||
|
return <EntityRegistryContext.Provider value={entityRegistry}>{children}</EntityRegistryContext.Provider>;
|
||
|
};
|
||
|
|
||
|
export default EntityRegistryProvider;
|