namespace ClaudeDo.Installer.Core;

public sealed class PageResolver
{
    private readonly IReadOnlyList<IInstallerPage> _allPages;

    public PageResolver(IEnumerable<IInstallerPage> pages)
    {
        _allPages = pages.OrderBy(p => p.Order).ToList();
    }

    public IReadOnlyList<IInstallerPage> WizardPages =>
        _allPages.Where(p => p.ShowInWizard).ToList();

    public IReadOnlyList<IInstallerPage> SettingsPages =>
        _allPages.Where(p => p.ShowInSettings).ToList();
}
