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
15 lines
440 B
TypeScript
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;
|
|
};
|