import { ContainerModule } from 'inversify';
import { SPONSOR_SERVICE_TOKEN } from '../tokens';
import { SponsorService } from '@/lib/services/sponsors/SponsorService';

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

  // Sponsor Service - creates its own dependencies for server safety
  bind<SponsorService>(SPONSOR_SERVICE_TOKEN)
    .to(SponsorService)
    .inTransientScope(); // Not singleton for server concurrency
});