Connect the storefront to the Meshkee Website API.
Products, blog, search, mega menu, and home carousels now read live tenant data, and login goes to the customer portal. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
1a2b62463e
commit
c0a95a826a
@@ -0,0 +1,18 @@
|
||||
import { Footer } from "@/components/Footer";
|
||||
import { Header } from "@/components/Header";
|
||||
import { TopHeader } from "@/components/TopHeader";
|
||||
import { getMegaMenuColumns } from "@/lib/api";
|
||||
import type { ReactNode } from "react";
|
||||
|
||||
export async function SiteChrome({ children }: { children: ReactNode }) {
|
||||
const categories = await getMegaMenuColumns();
|
||||
|
||||
return (
|
||||
<div className="flex min-h-full flex-col">
|
||||
<TopHeader />
|
||||
<Header categories={categories} />
|
||||
<main className="flex-1">{children}</main>
|
||||
<Footer />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user