31 lines
738 B
TypeScript
31 lines
738 B
TypeScript
// app/[lang]/layout.tsx
|
|
import { dir } from "i18next";
|
|
import Header from "@/components/nav_foot/header";
|
|
import Navbar from "@/components/nav_foot/navbar";
|
|
import Footer from "@/components/nav_foot/footer";
|
|
import Contact from "@/components/pageParts/contact";
|
|
import UpScrollIcon from "@/components/upScroll";
|
|
|
|
export default function LangLayout({
|
|
children,
|
|
params,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
params: { lang: "uz" | "ru" };
|
|
}>) {
|
|
return (
|
|
<html lang={params.lang} dir={dir(params.lang)}>
|
|
<body>
|
|
<Header />
|
|
<Navbar />
|
|
{children}
|
|
<section id="contact">
|
|
<Contact />
|
|
</section>
|
|
<Footer />
|
|
<UpScrollIcon />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|