using Avalonia;
using Avalonia.Controls;

namespace AtomUI.Desktop.Controls;

internal class MessageBoxDialogHost : DialogHost
{
    protected override Type StyleKeyOverride { get; } = typeof(MessageBoxDialogHost);
    
    public static readonly StyledProperty<PathIcon?> StyleIconProperty =
        AvaloniaProperty.Register<MessageBoxDialogHost, PathIcon?>(nameof (StyleIcon));
    
    public static readonly StyledProperty<MessageBoxStyle> StyleProperty =
        MessageBox.StyleProperty.AddOwner<MessageBoxDialogHost>();
    
    public PathIcon? StyleIcon
    {
        get => GetValue(StyleIconProperty);
        set => SetValue(StyleIconProperty, value);
    }
    
    public MessageBoxStyle Style
    {
        get => GetValue(StyleProperty);
        set => SetValue(StyleProperty, value);
    }
    
    public MessageBoxDialogHost(TopLevel parent, Dialog dialog)
        : base(parent, dialog)
    {
    }
}