mirror of
https://github.com/datahub-project/datahub.git
synced 2025-06-27 05:03:31 +00:00
19 lines
459 B
TypeScript
19 lines
459 B
TypeScript
![]() |
import React from 'react';
|
||
|
import { AppConfig } from './types.generated';
|
||
|
|
||
|
export const DEFAULT_APP_CONFIG = {
|
||
|
analyticsConfig: {
|
||
|
enabled: false,
|
||
|
},
|
||
|
policiesConfig: {
|
||
|
enabled: false,
|
||
|
platformPrivileges: [],
|
||
|
resourcePrivileges: [],
|
||
|
},
|
||
|
};
|
||
|
|
||
|
export const AppConfigContext = React.createContext<{
|
||
|
config: AppConfig;
|
||
|
refreshContext: () => void;
|
||
|
}>({ config: DEFAULT_APP_CONFIG, refreshContext: () => null });
|