d7fb7b7a7b
Build & Deploy / Build & Push Docker Image (push) Failing after 47s
Build & Deploy / Deploy to VPS (push) Has been skipped
Test / API Unit Tests (push) Failing after 5m4s
Test / Marketplace Unit Tests (push) Failing after 4m55s
Test / Admin Unit Tests (push) Successful in 9m37s
Test / Dashboard Unit Tests (push) Successful in 9m37s
Test / API Integration Tests (push) Successful in 9m54s
23 lines
509 B
TypeScript
23 lines
509 B
TypeScript
import React from 'react'
|
|
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} />
|
|
}
|