@using DeepDrftModels.Enums

@* Cut-medium fields: the commercial release format. Plain explicit markup — no generics. *@
<MudItem xs="12" sm="6">
    <MudSelect T="ReleaseType"
               Value="ReleaseType"
               ValueChanged="@(v => ReleaseTypeChanged.InvokeAsync(v))"
               Label="Release Type"
               Variant="Variant.Outlined"
               Disabled="Disabled">
        @foreach (var rt in Enum.GetValues<ReleaseType>())
        {
            <MudSelectItem T="ReleaseType" Value="rt">@rt</MudSelectItem>
        }
    </MudSelect>
</MudItem>

@code {
    [Parameter] public ReleaseType ReleaseType { get; set; } = ReleaseType.Single;
    [Parameter] public EventCallback<ReleaseType> ReleaseTypeChanged { get; set; }
    [Parameter] public bool Disabled { get; set; }
}
