import { getPublishedPageBySlugForLocale, listPostsForLocale } from "@cms/db" import { getTranslations } from "next-intl/server" import { PublicAnnouncements } from "@/components/public-announcements" import { PublicPageView } from "@/components/public-page-view" import { Link } from "@/i18n/navigation" 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), listPostsForLocale(locale), getTranslations("Home"), ]) return (
{homePage ? : null}

{t("badge")}

{t("latestPosts")}

{t("description")}

{t("latestPosts")}

{t("explore")} {t("requestCommission")}
    {posts.map((post) => (
  • {post.status}

    {post.title}

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

  • ))}
) }