import { getPostBySlugForLocale } from "@cms/db" import { notFound } from "next/navigation" export const dynamic = "force-dynamic" type PageProps = { params: Promise<{ locale: string; slug: string }> } export default async function PublicNewsDetailPage({ params }: PageProps) { const { locale, slug } = await params const post = await getPostBySlugForLocale(slug, locale) if (!post || post.status !== "published") { notFound() } return (

News

{post.title}

{post.excerpt ?

{post.excerpt}

: null}
{post.body}
) }