mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-26 02:50:01 +00:00
15 lines
378 B
TypeScript
15 lines
378 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;
|
|
}
|