using Microsoft.Extensions.DependencyInjection;

namespace Harmonia.UI.ViewModels;

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

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

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

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