connected api with profile, order

This commit is contained in:
Jelaletdin12
2025-11-15 16:14:01 +05:00
parent 21b9e88c5c
commit f867896817
70 changed files with 2370 additions and 2317 deletions

View File

@@ -1,35 +1,35 @@
import type { Metadata } from "next"
import HomePage from "@/components/home/HomePage"
import type { Metadata } from "next";
import HomePage from "@/features/home/components/HomePage";
export const revalidate = 300
export const revalidate = 300;
export async function generateMetadata({
params
}: {
params: Promise<{ locale: string }>
export async function generateMetadata({
params,
}: {
params: Promise<{ locale: string }>;
}): Promise<Metadata> {
const { locale } = await params
const { locale } = await params;
const meta = {
ru: {
title: "Интернет магазин - Лучшие товары по низким ценам",
description: "Качественные товары с быстрой доставкой по всей стране"
description: "Качественные товары с быстрой доставкой по всей стране",
},
tm: {
title: "Satym dükanı - Iň gowy harytlar aşak bahada",
description: "Suw harytly towarnama. Elektrika, eşik, ev we bag"
}
}
description: "Suw harytly towarnama. Elektrika, eşik, ev we bag",
},
};
const { title, description } = meta[locale as keyof typeof meta] || meta.ru
const { title, description } = meta[locale as keyof typeof meta] || meta.ru;
return {
title,
description,
openGraph: { type: "website", locale, title, description }
}
openGraph: { type: "website", locale, title, description },
};
}
export default function Page() {
return <HomePage />
}
return <HomePage />;
}