/**
 * Email Module
 *
 * Provides email functionality
 */

import { Module } from '@nestjs/common';
import { ConfigModule } from '@nestjs/config';
import { EmailAdapter } from './email.adapter';
import { EmailTemplates } from './templates/email-templates';
import { EMAIL_PORT } from '@domain/ports/out/email.port';

@Module({
  imports: [ConfigModule],
  providers: [
    EmailTemplates,
    {
      provide: EMAIL_PORT,
      useClass: EmailAdapter,
    },
  ],
  exports: [EMAIL_PORT],
})
export class EmailModule {}
