{sortedAppStoreCategories
.filter(
([categoryId]) =>
!selectedCategories.length ||
selectedCategories.includes(categoryId)
)
.map(([categoryId, category]) => {
return (
{category.title}
{appStoreApps
.filter((app) =>
(app.categories as string[]).includes(categoryId)
)
.map((app) => (
))}
);
})}
>
);
}