15 lines
421 B
TypeScript
15 lines
421 B
TypeScript
import { getDictionary } from "@/lib/dictionaries";
|
|
import { DocsClient } from "./docs-client";
|
|
|
|
export default async function DocsPage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ lang: string }>;
|
|
}) {
|
|
const { lang } = await params;
|
|
const dict = await getDictionary(lang);
|
|
|
|
// Передаем весь словарь или нужную часть, плюс текущий язык
|
|
return <DocsClient lang={lang} />;
|
|
}
|