import { BASE_URL } from "@/constants" import { getIconsArray } from "@/lib/api" import type { Metadata } from "next" import { IconSearch } from "./components/icon-search" export async function generateMetadata(): Promise { const icons = await getIconsArray() const totalIcons = icons.length return { title: "Browse Icons | Free Dashboard Icons", description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`, keywords: [ "browse icons", "dashboard icons", "icon search", "service icons", "application icons", "tool icons", "web dashboard", "app directory", ], openGraph: { title: "Browse Icons | Free Dashboard Icons", description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`, type: "website", url: `${BASE_URL}/icons`, images: [ { url: "/og-image.png", width: 1200, height: 630, alt: "Browse Dashboard Icons Collection", type: "image/png", }, ], }, twitter: { card: "summary_large_image", title: "Browse Icons | Free Dashboard Icons", description: `Search and browse through our collection of ${totalIcons} curated icons for services, applications and tools, designed specifically for dashboards and app directories.`, images: ["/og-image-browse.png"], }, alternates: { canonical: `${BASE_URL}/icons`, }, } } export const dynamic = "force-static" export default async function IconsPage() { const icons = await getIconsArray() return (

Browse icons

Search through our collection of {icons.length} beautiful icons.

) }