using Avalonia.Controls;

namespace ClaudeDo.Ui.Views.Modals;

public partial class UnfinishedPlanningModalView : Window
{
    public UnfinishedPlanningModalView()
    {
        InitializeComponent();
        DataContextChanged += (_, _) =>
        {
            if (DataContext is ViewModels.Modals.UnfinishedPlanningModalViewModel vm)
                vm.CloseAction = () => Close();
        };
    }
}
