@using AIStudio.Settings
@inherits MSGComponentBase

<MudStack Row="true" AlignItems="AlignItems.Baseline" StretchItems="StretchItems.Start" Class="mb-3" Wrap="Wrap.NoWrap">
    <MudSelect T="Profile" Strict="@true" Value="@this.Profile" ValueChanged="@this.SelectionChanged" Adornment="Adornment.Start" AdornmentIcon="@Icons.Material.Filled.Person4" Margin="Margin.Dense" Label="@T("Select one of your profiles")" Variant="Variant.Outlined" Class="mb-3" Validation="@this.Validation">
        @foreach (var profile in this.SettingsManager.ConfigurationData.Profiles.GetAllProfiles())
        {
            <MudSelectItem Value="profile">
                @profile.Name
            </MudSelectItem>
        }
    </MudSelect>
    
    <MudIconButton Icon="@Icons.Material.Filled.Settings" OnClick="() => this.OpenSettingsDialog()"/>
</MudStack>