import { InjectionToken, inject } from '@angular/core';
import { AdminDashboardMetricsGateway } from './admin-dashboard-metrics.gateway.interface';
import { AdminDashboardMetricsLocalGateway } from './admin-dashboard-metrics.local.gateway';

/** Swap point for a future dedicated dashboard-metrics backend endpoint - today it composes existing backoffice data sources. */
export const ADMIN_DASHBOARD_METRICS_GATEWAY = new InjectionToken<AdminDashboardMetricsGateway>('ADMIN_DASHBOARD_METRICS_GATEWAY', {
  providedIn: 'root',
  factory: () => inject(AdminDashboardMetricsLocalGateway),
});
