using System;
using Nebula.Shared.Services;

namespace Nebula.Launcher.ViewModels.Popup;

public abstract class PopupViewModelBase : ViewModelBase, IDisposable
{
    public abstract PopupMessageService PopupMessageService { get; }

    public abstract string Title { get; }
    public abstract bool IsClosable { get; }

    public void Dispose()
    {
        PopupMessageService.ClosePopup(this);
    }
}