| 1 | import type { Metadata } from "next"; |
| 2 | import { ContributorMerch } from "@/components/contributor-merch"; |
| 3 | import { getMerchCopy } from "@/lib/content/contributor-merch"; |
| 4 | |
| 5 | export async function generateMetadata({ params }: { params: Promise<{ locale: string }> }): Promise<Metadata> { |
| 6 | const { locale } = await params; |
| 7 | const copy = getMerchCopy(locale); |
| 8 | return { title: `${copy.title} · Codewhale`, description: copy.lede, robots: { index: false, follow: false } }; |
| 9 | } |
| 10 | |
| 11 | export default async function ContributorMerchPage({ params }: { params: Promise<{ locale: string }> }) { |
| 12 | const { locale } = await params; |
| 13 | return <ContributorMerch locale={locale} />; |
| 14 | } |
| 15 |