Skip to content

Commit 896f934

Browse files
committed
feat: add enterprise and fe-lib availability flags to MainContext
1 parent da8cb29 commit 896f934

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Shared/Providers/types.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,16 @@ export interface MainContext {
8888
sidePanelConfig: SidePanelConfig
8989
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>
9090

91+
/**
92+
* Indicates whether the current Devtron instance is running as an Enterprise edition. \
93+
* This flag is determined based on server-side configuration.
94+
*/
9195
isEnterprise: boolean
96+
/**
97+
* Indicates whether the fe-lib modules are available in the current instance. \
98+
* Used to conditionally render or enable features that depend on fe-lib
99+
*/
100+
isFELibAvailable: boolean
92101
}
93102

94103
export interface MainContextProviderProps {

0 commit comments

Comments
 (0)