<MudSelect 
    T="Team"
    MultiSelection="true"
           @bind-SelectedValues="@SelectedTeams"
        ToStringFunc="e => e.ToString()"
        Label="@Label">

    @foreach (var evt in Teams.OrderBy(e => e.ToString()))
    {
        <MudSelectItem T="Team" Value="@evt">@evt.ToString()</MudSelectItem>
    }
</MudSelect>

@code {
    [Parameter] public Team[]? Teams { get; set; }
    [Parameter] public required IEnumerable<Team> SelectedTeams { get; set; }
    [Parameter] public string Label { get; set; } = "Teams";
}
