import LogoutButton from "@/app/logout-button"; import LanguageSwitcher from "@/app/language-switcher"; import ItemsResults from "@/app/items-results"; import { getItems } from "@/lib/items"; import { cookies } from "next/headers"; import { getLocale, LOCALE_COOKIE, t } from "@/lib/i18n"; export const dynamic = "force-dynamic"; export default async function ItemsPage() { const { items, error } = await getItems(); const locale = getLocale((await cookies()).get(LOCALE_COOKIE)?.value); return (
{/* Header */}

{t(locale, "articles.title")}

{t(locale, "articles.description")}

); }