import { InjectionToken, inject } from '@angular/core';
import { ApiCategoryRepository } from './repositories/api-category.repository';
import { CategoryRepository } from './repositories/category.repository';

/**
 * No mock CategoryRepository implementation exists - same dead branch as
 * PRODUCT_DATA_PROVIDER. Always resolved to the real API repository
 * regardless of getCategoryProviderMode(); removed the dead switch.
 */
export const CATEGORY_REPOSITORY = new InjectionToken<CategoryRepository>('CATEGORY_REPOSITORY', {
  providedIn: 'root',
  factory: () => inject(ApiCategoryRepository)
});