Adds feature flag for 5.0 redesign (#39802)

This commit is contained in:
Echo authored and GitHub committed 2026-07-13 14:18:40 +00:00
1 parent 78894ca4ad
commit 474c807e8e
1 file changed
+6 -1
+6 -1
View File
@@ -18,7 +18,7 @@ export function isServerFeatureEnabled(feature: ServerFeatures) {
return initialState?.features.includes(feature) ?? false;
}
type ClientFeatures = never;
type ClientFeatures = 'redesign';
export function isClientFeatureEnabled(feature: ClientFeatures) {
try {
@@ -30,3 +30,8 @@ export function isClientFeatureEnabled(feature: ClientFeatures) {
return false;
}
}
/* Checks if the 5.0 redesign features are enabled or not. */
export function isRedesignEnabled() {
return isClientFeatureEnabled('redesign');
}