using Microsoft.Extensions.DependencyInjection;

namespace MangaReader.WinUI.ViewModels;

public class ViewModelLocator
{
    public static MainViewModel MainViewModel
        => App.ServiceProvider.GetRequiredService<MainViewModel>();

    public static SearchViewModel SearchViewModel
        => App.ServiceProvider.GetRequiredService<SearchViewModel>();

    public static LibraryViewModel LibraryViewModel
        => App.ServiceProvider.GetRequiredService<LibraryViewModel>();
}