mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-19 07:30:54 +00:00

Allow the ability to now nest domains underneath other domains. This should work much like the business glossary where you can add domains underneath other domains, move domains underneath other domains or at the root, and navigate domains using a nice new navigator.
20 lines
528 B
TypeScript
20 lines
528 B
TypeScript
import { useContext } from 'react';
|
|
import { AppConfigContext } from '../appConfigContext';
|
|
|
|
/**
|
|
* Fetch an instance of AppConfig from the React context.
|
|
*/
|
|
export function useAppConfig() {
|
|
return useContext(AppConfigContext);
|
|
}
|
|
|
|
export function useIsShowAcrylInfoEnabled() {
|
|
const appConfig = useAppConfig();
|
|
return appConfig.config.featureFlags.showAcrylInfo;
|
|
}
|
|
|
|
export function useIsNestedDomainsEnabled() {
|
|
const appConfig = useAppConfig();
|
|
return appConfig.config.featureFlags.nestedDomainsEnabled;
|
|
}
|