namespace Tiku.Application.Security;

public static class ProductModuleCatalog
{
    public static readonly IReadOnlyDictionary<string, string> All =
        new Dictionary<string, string>(StringComparer.Ordinal)
        {
            ["dashboard"] = "Dashboard",
            ["staff"] = "Staff",
            ["role"] = "Roles",
            ["student"] = "Students",
            ["content"] = "Content",
            ["settings"] = "Settings",
            ["provider"] = "Providers",
            ["commerce"] = "Commerce",
            ["crm"] = "CRM",
            ["commission"] = "Commission",
            ["job"] = "Background Jobs"
        };

    public static bool Contains(string moduleCode) =>
        All.ContainsKey(moduleCode.Trim().ToLowerInvariant());
}
