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

23 lines
670 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { LayoutWithSidebar } from "@/components/page/layout-with-sidebar";
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>
);
}