Files
smart-electronics-frontend/app/[locale]/page.tsx
2026-02-07 16:06:33 +05:00

34 lines
948 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 type { Metadata } from "next";
import HomePage from "@/features/home/components/HomePage";
const META = {
ru: {
title: "Интернет магазин - Лучшие товары по низким ценам",
description: "Качественные товары с быстрой доставкой по всей стране",
},
tm: {
title: "SmartElectronics - Iň gowy harytlar, amatly bahada",
description:
"Ýokary hilli harytlar. Elektronika, eşik, arassaçylyk, sport, kosmetika",
},
} as const;
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}): Promise<Metadata> {
const { locale } = await params;
const { title, description } = META[locale as keyof typeof META] || META.ru;
return {
title,
description,
openGraph: { type: "website", locale, title, description },
};
}
export default function Page() {
return <HomePage />;
}