import Link from "next/link"; import { notFound } from "next/navigation"; import { getLandingContent, isSupportedLocale, locales } from "@/lib/site-data"; export function generateStaticParams() { return locales.map((locale) => ({ locale })); } export default async function CoursesPage({ params }) { const { locale } = await params; if (!isSupportedLocale(locale)) { notFound(); } const { courses, navigation, shared } = getLandingContent(locale); return (
{navigation.homeLabel}

{navigation.courses}

{shared.coursesIntro}

{courses.map((course) => (
{course.level}

{course.title}

{course.summary}

{course.price} / {shared.perLevel}
{shared.viewDetails}
))}
); }