import { InjectionToken, inject } from '@angular/core';
import { ApiProductDataProvider } from './providers/api-product-data.provider';
import { ProductDataProvider } from './providers/product-data-provider.interface';

/**
 * No mock ProductDataProvider implementation exists - RuntimeProviderStrategyService.
 * getProductProviderMode() can report 'mock', but there was never a branch that acted
 * on it, so this always resolved to the real API provider regardless. Removed the dead
 * switch instead of leaving code that implies a mock mode which doesn't exist.
 */
export const PRODUCT_DATA_PROVIDER = new InjectionToken<ProductDataProvider>('PRODUCT_DATA_PROVIDER', {
  providedIn: 'root',
  factory: () => inject(ApiProductDataProvider)
});
