feat(web): enhance community page

This commit is contained in:
Thomas Camlong
2025-10-01 19:08:16 +02:00
parent 49aab75953
commit a369676609

View File

@@ -1,4 +1,5 @@
import type { Metadata } from "next"
import { Suspense } from "react"
import { CommunityIconSearch } from "@/components/community-icon-search"
import { BASE_URL } from "@/constants"
import { getCommunitySubmissions } from "@/lib/community"
@@ -49,7 +50,9 @@ export default async function CommunityPage() {
<p className="text-muted-foreground mb-1">Search through our collection of {icons.length} community-submitted icons.</p>
</div>
</div>
<CommunityIconSearch icons={icons as any} />
<Suspense fallback={<div className="text-muted-foreground">Loading...</div>}>
<CommunityIconSearch icons={icons as any} />
</Suspense>
</div>
)
}