/**
 * Feature Flags Configuration
 * Controls which features are enabled/disabled in the extension
 */

export const FEATURE_FLAGS = {
  // Echomark watermarking integration
  ECHOMARK_ENABLED: false,

  // Custom field editor and AI section builder
  CUSTOMS_EDITOR_ENABLED: false,

  // DICOM viewer and AI radiology analysis
  DICOM_VIEWER_ENABLED: true,

  // Document downloads and caching
  DOCUMENT_DOWNLOADS_ENABLED: true,

  // Project and file browser
  PROJECT_BROWSER_ENABLED: true
};

/**
 * Check if a feature is enabled
 * @param {string} featureName - Feature flag name
 * @returns {boolean}
 */
export function isFeatureEnabled(featureName) {
  return FEATURE_FLAGS[featureName] === true;
}

/**
 * Get all enabled features
 * @returns {string[]}
 */
export function getEnabledFeatures() {
  return Object.keys(FEATURE_FLAGS).filter(key => FEATURE_FLAGS[key] === true);
}

/**
 * Get all disabled features
 * @returns {string[]}
 */
export function getDisabledFeatures() {
  return Object.keys(FEATURE_FLAGS).filter(key => FEATURE_FLAGS[key] === false);
}
