using Gready_Poang.Core;

namespace Gready_Poang;

public class PageFactory : IPageFactory
{
    private readonly IServiceProvider _services;

    public PageFactory(IServiceProvider services)
    {
        _services = services;
    }

    public Page CreateRoundPage()
    {
        //var vm = _services.GetRequiredService<RoundRunningViewModelCommands>();
        //return new RoundRunningView(vm);
        return null;
    }

    //public Page CreateStatsPage()
    //{
    //    //var vm = _services.GetRequiredService<StatsViewModel>();
    //    //var splashVm = _services.GetRequiredService<SplashViewModelCommands>();
    //    //var view = new StatsView { BindingContext = vm };
    //    //return new StatsPage(view, splashVm);
    //}
}
