summaryrefslogtreecommitdiff
path: root/src/jet/dependencies/feature-flags.ts
blob: e745137bf8c2b9b79fcac79a6b7ee6598c65e1b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const ENABLED_FEATURES = new Set([
    // Make the `ProductPageIntentController` return a `ShelfBasedProductPage` instance
    'shelves_2_0_product',
    // Enable shelf-based "Top Charts" features
    // 'shelves_2_0_top_charts',
    // Make the `RibbonBarShelf` contain an array of `RibbonBarItem`s
    'shelves_2_0_generic',
    // Enable AX Metadata
    'product_accessibility_support_2025A',
]);

export class WebFeatureFlags implements FeatureFlags {
    isEnabled(feature: string): boolean {
        return ENABLED_FEATURES.has(feature);
    }

    isGSEUIEnabled(_feature: string): boolean {
        return false;
    }
}