turkmen-expo/app/(root)/(mainMenu)/company/aboutus/page.tsx

23 lines
668 B
TypeScript
Raw Normal View History

2025-11-21 06:16:42 +00:00
import { LayoutWithSidebar } from "@/components/page/LayoutWithSidebar";
2025-10-12 17:42:17 +00:00
import { getAbout } from "@/services/about";
import { cookies } from "next/headers";
export default async function AboutPage() {
const lang = cookies().get("lang")?.value ?? "ru";
const data = await getAbout(lang);
const aboutText = lang === "en" ? "About us" : "Коротко о нас";
return (
<LayoutWithSidebar second={aboutText} title={aboutText}>
<div
dangerouslySetInnerHTML={{
__html: data,
}}
className="text-[16px] aboutus text-p flex flex-col items-start gap-6 leading-[150%] pb-10"
/>
</LayoutWithSidebar>
);
}