PromucFlow_constructor/app/client/src/navigation/featureFlagHooks.ts
Hetu Nandu b26a954d94
chore: Add an extra feature flag to control App sidebar rollout (#28876)
Adds a new feature flag to control the rollout of the App sidebar. It
needs to be different as the earlier feature flag was shipped to users
already and they may not be on the latest version.

fixes: #28877
2023-11-15 16:49:41 +05:30

15 lines
440 B
TypeScript

import { useFeatureFlag } from "../utils/hooks/useFeatureFlag";
import { FEATURE_FLAG } from "@appsmith/entities/FeatureFlag";
export const useIsAppSidebarEnabled = () => {
const isAppSidebarEnabled = useFeatureFlag(
FEATURE_FLAG.release_app_sidebar_enabled,
);
const isAppSidebarRolloutEnabled = useFeatureFlag(
FEATURE_FLAG.rollout_app_sidebar_enabled,
);
return isAppSidebarEnabled || isAppSidebarRolloutEnabled;
};