@using BackOffice.Services.DiscountCategory

<MudSelect @ref="_selectRef"
           T="long"
           MultiSelection="true"
           MultiSelectionTextFunc="@GetSelectedText"
           SelectedValues="_internalSelectedIds"
           SelectedValuesChanged="OnSelectedValuesChangedAsync"
           Label="@Label"
           Variant="Variant.Outlined"
           Margin="Margin.Dense"
           Disabled="@Disabled">
    @foreach (var item in _items)
    {
        <MudSelectItem T="long" Value="@item.Id">@item.Title</MudSelectItem>
    }
</MudSelect>
