mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
 --------- Signed-off-by: andreas-unleash <andreas@getunleash.ai> Co-authored-by: andreas-unleash <andreas@getunleash.ai>
10 lines
415 B
TypeScript
10 lines
415 B
TypeScript
import { useCheckDependenciesExist } from 'hooks/api/getters/useCheckDependenciesExist/useCheckDependenciesExist';
|
|
import useUiConfig from 'hooks/api/getters/useUiConfig/useUiConfig';
|
|
|
|
export const useShowDependentFeatures = (project: string) => {
|
|
const { dependenciesExist } = useCheckDependenciesExist(project);
|
|
const { isOss } = useUiConfig();
|
|
|
|
return Boolean(isOss() ? dependenciesExist : true);
|
|
};
|