import { ContainerModule } from 'inversify';
import { DashboardService } from '@/lib/services/analytics/DashboardService';

import {
  DASHBOARD_SERVICE_TOKEN,
} from '../tokens';

export const AnalyticsModule = new ContainerModule((options) => {
  const bind = options.bind;

  // Dashboard Service - creates its own dependencies per contract
  bind<DashboardService>(DASHBOARD_SERVICE_TOKEN)
    .to(DashboardService)
    .inSingletonScope();
});