mirror of
https://github.com/datahub-project/datahub.git
synced 2025-07-10 10:44:39 +00:00
40 lines
883 B
TypeScript
40 lines
883 B
TypeScript
import React from 'react';
|
|
import { AppConfig } from './types.generated';
|
|
|
|
export const DEFAULT_APP_CONFIG = {
|
|
analyticsConfig: {
|
|
enabled: false,
|
|
},
|
|
policiesConfig: {
|
|
enabled: false,
|
|
platformPrivileges: [],
|
|
resourcePrivileges: [],
|
|
},
|
|
identityManagementConfig: {
|
|
enabled: false,
|
|
},
|
|
managedIngestionConfig: {
|
|
enabled: false,
|
|
},
|
|
lineageConfig: {
|
|
supportsImpactAnalysis: false,
|
|
},
|
|
visualConfig: {
|
|
logoUrl: undefined,
|
|
},
|
|
authConfig: {
|
|
tokenAuthEnabled: false,
|
|
},
|
|
telemetryConfig: {
|
|
enableThirdPartyLogging: false,
|
|
},
|
|
testsConfig: {
|
|
enabled: false,
|
|
},
|
|
};
|
|
|
|
export const AppConfigContext = React.createContext<{
|
|
config: AppConfig;
|
|
refreshContext: () => void;
|
|
}>({ config: DEFAULT_APP_CONFIG, refreshContext: () => null });
|