import { ApiProperty } from '@nestjs/swagger';

import { TeamDTO } from './TeamDto';
import { TeamMembershipDTO } from './TeamMembershipDTO';

export class GetTeamDetailsOutputDTO {
  @ApiProperty({ type: TeamDTO })
  team!: TeamDTO;

  @ApiProperty({ type: TeamMembershipDTO, nullable: true })
  membership!: TeamMembershipDTO | null;

  @ApiProperty()
  canManage!: boolean;
}