Wire Meshkee catalog: products, blog, mega menu, and product search.
Catalog-only (no cart); search targets store items and products pages. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
cfa21cbee9
commit
8e14748b48
+5
-2
@@ -4,6 +4,7 @@ import "./globals.css";
|
||||
import { Footer } from "@/components/layout/Footer";
|
||||
import { Header } from "@/components/layout/Header";
|
||||
import { TopBar } from "@/components/layout/TopBar";
|
||||
import { getNavCategories } from "@/lib/categories";
|
||||
import { site } from "@/lib/data";
|
||||
|
||||
const vazir = Vazirmatn({
|
||||
@@ -30,12 +31,14 @@ export const metadata: Metadata = {
|
||||
icons: { icon: "/favicon.ico" },
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
export default async function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
const categories = await getNavCategories();
|
||||
|
||||
return (
|
||||
<html lang="fa" dir="rtl" className={`${vazir.variable} ${montserrat.variable}`}>
|
||||
<body className={`${vazir.className} min-h-screen antialiased`}>
|
||||
<TopBar />
|
||||
<Header />
|
||||
<Header categories={categories} />
|
||||
<main>{children}</main>
|
||||
<Footer />
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user