Skip to content

Open-source event management and ticket selling platform — perfect for concerts, conferences, and everything in between 🎟️ If you find this project helpful, please consider giving us a star ⭐️

969 B
Raw Blame
import {t} from "@lingui/macro";
import {FeatureFlag} from "../../../../constants/featureFlags.ts";

export const getFeatureFlagLabel = (key: string): { name: string, description: string } => {
    switch (key) {
        case FeatureFlag.SEATING:
            return {
                name: t`Reserved seating`,
                description: t`Lets accounts design seat maps and sell tickets by seat.`,
            };
        case FeatureFlag.BOX_OFFICE:
            return {
                name: t`Box office`,
                description: t`Lets accounts sell tickets at the door, with card readers and door check-in.`,
            };
        case FeatureFlag.ENTERPRISE_SSO:
            return {
                name: t`Enterprise single sign-on`,
                description: t`Lets accounts connect their identity provider, verify email domains and require single sign-on.`,
            };
        default:
            return {name: key, description: ''};
    }
};