import type { PublicIntegrationConfig } from './environment';

export interface FeatureFlags {
  demoSubmissionEnabled: boolean;
  crmIntegrationEnabled: false;
  schedulerEnabled: false;
  analyticsEnabled: boolean;
  marketingConsentEnabled: false;
  productTourEnabled: false;
  pricingDestinationEnabled: false;
  loginDestinationEnabled: false;
}

export function buildFeatureFlags(config: PublicIntegrationConfig): FeatureFlags {
  return {
    demoSubmissionEnabled: config.demoSubmissionEnabled,
    crmIntegrationEnabled: false,
    schedulerEnabled: false,
    analyticsEnabled: config.analyticsMode === 'test',
    marketingConsentEnabled: false,
    productTourEnabled: false,
    pricingDestinationEnabled: false,
    loginDestinationEnabled: false,
  };
}
