import { getPublishedPageBySlugForLocale, listPosts } from "@cms/db" import { Button } from "@cms/ui/button" import { getTranslations } from "next-intl/server" import { PublicAnnouncements } from "@/components/public-announcements" import { PublicPageView } from "@/components/public-page-view" export const dynamic = "force-dynamic" type HomePageProps = { params: Promise<{ locale: string }> } export default async function HomePage({ params }: HomePageProps) { const { locale } = await params const [homePage, posts, t] = await Promise.all([ getPublishedPageBySlugForLocale("home", locale), listPosts(), getTranslations("Home"), ]) return (
{homePage ? : null}

{t("badge")}

{t("latestPosts")}

{t("description")}

{t("latestPosts")}

    {posts.map((post) => (
  • {post.status}

    {post.title}

    {post.excerpt ?? t("noExcerpt")}

  • ))}
) }