import type { Metadata } from "next" import { CommunityIconSearch } from "@/components/community-icon-search" import { BASE_URL } from "@/constants" import { getCommunitySubmissions } from "@/lib/community" export async function generateMetadata(): Promise { const icons = await getCommunitySubmissions() const totalIcons = icons.length return { title: "Browse Community Icons | Dashboard Icons", description: `Search and browse through ${totalIcons} community-submitted icons awaiting review and addition to the Dashboard Icons collection.`, keywords: [ "community icons", "browse community icons", "icon submissions", "community contributions", "pending icons", "approved icons", "dashboard icons community", "user submitted icons", ], openGraph: { title: "Browse Community Icons | Dashboard Icons", description: `Search and browse through ${totalIcons} community-submitted icons awaiting review and addition to the Dashboard Icons collection.`, type: "website", url: `${BASE_URL}/community`, }, twitter: { card: "summary_large_image", title: "Browse Community Icons | Dashboard Icons", description: `Search and browse through ${totalIcons} community-submitted icons awaiting review and addition to the Dashboard Icons collection.`, }, alternates: { canonical: `${BASE_URL}/community`, }, } } export const revalidate = 600 export default async function CommunityPage() { const icons = await getCommunitySubmissions() return (

Browse community icons

Search through our collection of {icons.length} community-submitted icons.

) }