// Copyright (c) Bili Copilot. All rights reserved.

using BiliCopilot.UI.ViewModels.View;
using Richasy.WinUIKernel.Share.Base;

namespace BiliCopilot.UI.Pages.Overlay;

/// <summary>
/// 粉丝页面.
/// </summary>
public sealed partial class FansPage : FansPageBase
{
    /// <summary>
    /// Initializes a new instance of the <see cref="FansPage"/> class.
    /// </summary>
    public FansPage() => InitializeComponent();

    /// <inheritdoc/>
    protected override void OnPageLoaded()
        => ViewModel.InitializeCommand.Execute(default);
}

/// <summary>
/// 粉丝页面基类.
/// </summary>
public abstract class FansPageBase : LayoutPageBase<FansPageViewModel>
{
    /// <summary>
    /// Initializes a new instance of the <see cref="FansPageBase"/> class.
    /// </summary>
    protected FansPageBase() => ViewModel = this.Get<FansPageViewModel>();
}
