mirror of
https://github.com/datahub-project/datahub.git
synced 2025-08-01 05:47:17 +00:00
10 lines
235 B
TypeScript
10 lines
235 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);
|
|
}
|