import type { Team } from '../../domain/entities/Team';
import type { TeamMembership } from '../../domain/types/TeamMembership';
import type { Presenter } from '@core/shared/presentation';

export interface TeamDetailsViewModel {
  team: {
    id: string;
    name: string;
    tag: string;
    description: string;
    ownerId: string;
    leagues: string[];
    createdAt: string;
  };
  membership: {
    role: 'owner' | 'manager' | 'member';
    joinedAt: string;
    isActive: boolean;
  } | null;
  canManage: boolean;
}

export interface TeamDetailsResultDTO {
  team: Team;
  membership: TeamMembership | null;
  driverId: string;
}

export interface ITeamDetailsPresenter
  extends Presenter<TeamDetailsResultDTO, TeamDetailsViewModel> {}