@using CMSMicroservice.Protobuf.Protos.Package

<MudSelect T="long?" 
           Label="@Label" 
           Value="@SelectedPackageId"
           ValueChanged="OnValueChanged"
           Variant="Variant.Outlined" 
           Margin="Margin.Dense"
           Clearable="true"
           Style="min-width: 160px;">
    <MudSelectItem T="long?" Value="@((long?)null)">همه پکیج‌ها</MudSelectItem>
    @foreach (var pkg in _packages)
    {
        <MudSelectItem T="long?" Value="@((long?)pkg.Id)">@pkg.Title</MudSelectItem>
    }
</MudSelect>
