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