Files
netrunner-landing/app/[lang]/page.tsx
T
Трапезников Кирилл Иванович 4b11fec8cc base with cms integrated
2026-04-18 21:16:55 +10:00

37 lines
1.0 KiB
TypeScript

import { Suspense } from "react";
import { getDictionary } from "@/lib/dictionaries";
import { Hero } from "@/components/sections/Hero";
import { Features } from "@/components/sections/Features";
import { Pricing } from "@/components/sections/Pricing";
import { FAQ } from "@/components/sections/Faq";
import { BlogPreview } from "@/components/sections/BlogPreview";
export default async function Home({
params,
}: {
params: Promise<{ lang: string }>;
}) {
// РАЗВОРАЧИВАЕМ PARAMS
const { lang } = await params;
// Получаем словарь, используя проверенную строку
const dict = await getDictionary(lang);
return (
<>
<Hero dict={dict.hero} />
<Features dict={dict.features} />
<Pricing dict={dict.pricing} lang={lang} />
<FAQ dict={dict.faq} lang={lang} />
{
<Suspense
fallback={<div className="py-20 text-center">Loading...</div>}
>
<BlogPreview lang={lang} />
</Suspense>
}
</>
);
}