1- import { _generateMetadata , getTranslate } from "app/_utils" ;
1+ import { _generateMetadataForStaticPage } from "app/_utils" ;
2+ import type { Metadata } from "next" ;
23import { Inter } from "next/font/google" ;
34import localFont from "next/font/local" ;
45
@@ -8,6 +9,15 @@ import type { IconName } from "@calcom/ui/components/icon";
89import { lucideIconList } from "../../../../packages/ui/components/icon/icon-list.mjs" ;
910import { IconGrid } from "./IconGrid" ;
1011
12+ export const dynamic = "force-static" ;
13+ export const metadata : Metadata = _generateMetadataForStaticPage (
14+ "Icons Showcase" ,
15+ "" ,
16+ undefined ,
17+ undefined ,
18+ "/icons"
19+ ) ;
20+
1121const interFont = Inter ( { subsets : [ "latin" ] , variable : "--font-inter" , preload : true , display : "swap" } ) ;
1222const calFont = localFont ( {
1323 src : "../../fonts/CalSans-SemiBold.woff2" ,
@@ -16,25 +26,16 @@ const calFont = localFont({
1626 display : "swap" ,
1727 weight : "600" ,
1828} ) ;
19- export const generateMetadata = async ( ) => {
20- return await _generateMetadata (
21- ( t ) => t ( "icon_showcase" ) ,
22- ( ) => "" ,
23- undefined ,
24- undefined ,
25- "/icons"
26- ) ;
27- } ;
28- export default async function IconsPage ( ) {
29+
30+ export default function IconsPage ( ) {
2931 const icons = Array . from ( lucideIconList ) . sort ( ) as IconName [ ] ;
30- const t = await getTranslate ( ) ;
3132
3233 return (
3334 < div className = { `${ interFont . variable } ${ calFont . variable } ` } >
3435 < div className = "bg-subtle flex h-screen" >
3536 < IconSprites />
3637 < div className = "bg-default m-auto min-w-full rounded-md p-10 text-right ltr:text-left" >
37- < h1 className = "text-emphasis font-cal text-2xl font-medium" > { t ( "icons_showcase" ) } </ h1 >
38+ < h1 className = "text-emphasis font-cal text-2xl font-medium" > Icons Showcase </ h1 >
3839 < IconGrid title = "Regular Icons" icons = { icons } />
3940 < IconGrid
4041 title = "Filled Icons"
0 commit comments