import type { LeagueMembershipsDto } from '../dtos';
import { LeagueMemberViewModel } from '../view-models';

/**
 * League Members Presenter
 *
 * Transforms league memberships DTO to view models for the UI.
 */
export class LeagueMembersPresenter {
  /**
   * Present league memberships with current user context
   */
  present(dto: LeagueMembershipsDto, currentUserId: string): LeagueMemberViewModel[] {
    return dto.members.map(member => new LeagueMemberViewModel(member, currentUserId));
  }
}