fix contract

This commit is contained in:
root
2026-05-14 01:19:10 -04:00
committed by Administrator
parent 89621a163b
commit f317fa12dd
5 changed files with 374 additions and 66 deletions
@@ -0,0 +1,21 @@
import { notFound } from 'next/navigation'
import FooterContentPage from '@/components/FooterContentPage'
import { footerPageSlugs, isFooterPageSlug } from '@/lib/footerContent'
export function generateStaticParams() {
return footerPageSlugs.map((slug) => ({ slug }))
}
export default function FooterPage({
params,
}: {
params: { slug: string }
}) {
const { slug } = params
if (!isFooterPageSlug(slug)) {
notFound()
}
return <FooterContentPage slug={slug} />
}