using Avalonia.Controls;
using ClaudeDo.Ui.ViewModels.Modals;

namespace ClaudeDo.Ui.Views.Modals;

public partial class SettingsModalView : Window
{
    public SettingsModalView()
    {
        InitializeComponent();
        
    }

    protected override void OnDataContextChanged(EventArgs e)
    {
        base.OnDataContextChanged(e);
        if (DataContext is SettingsModalViewModel vm)
            vm.CloseAction = Close;
    }
}
