Compare commits

...

4 Commits

Author SHA1 Message Date
Alex van Andel d8d7e17474
Merge branch 'main' into feat/ee-component 2022-01-26 17:24:43 +00:00
Peer Richelsen 7aa37e1e14
Merge branch 'main' into feat/ee-component 2022-01-24 19:54:51 +00:00
Peer Richelsen 4d486707cc
Merge branch 'main' into feat/ee-component 2022-01-24 17:00:57 +00:00
Peer Richelsen 37916c7c33 added <EE> component to make it easier for non-ee users to see what components are not open source 2022-01-24 15:26:57 +00:00
1 changed files with 12 additions and 0 deletions

12
ee/components/EE.tsx Normal file
View File

@ -0,0 +1,12 @@
// only show enterprise edition components if a license was acquired
// TODO: instead of looking for a LICENSE_KEY environment variable, look use license server request
const license = true; //process.env.LICENSE_KEY;
export default function EE({ children }: { children: JSX.Element }) {
return license ? children : null;
}
export function isEE() {
return license;
}