Add guest cart drawer, Continue handoff, and shared customer login.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-25 17:33:39 +03:30
co-authored by Cursor
parent ad05241a77
commit 16340c3b48
18 changed files with 1082 additions and 97 deletions
+11 -5
View File
@@ -1,8 +1,10 @@
import type { Metadata } from "next";
import { Carter_One, Oswald, Vazirmatn } from "next/font/google";
import { AppProviders } from "@/components/AppProviders";
import { Footer } from "@/components/Footer";
import { Header } from "@/components/Header";
import { TopHeader } from "@/components/TopHeader";
import { getTenant } from "@/lib/api";
import { SITE } from "@/lib/site";
import "./globals.css";
@@ -30,14 +32,18 @@ export const metadata: Metadata = {
description: SITE.aboutShort,
};
export default function RootLayout({ children }: LayoutProps<"/">) {
export default async function RootLayout({ children }: LayoutProps<"/">) {
const tenant = await getTenant();
return (
<html lang="fa" dir="rtl" className={`${vazir.variable} ${oswald.variable} ${carter.variable} h-full antialiased`}>
<body className="min-h-full flex flex-col bg-white text-ink">
<TopHeader />
<Header />
<main className="flex-1">{children}</main>
<Footer />
<AppProviders businessId={tenant ? String(tenant.id) : ""}>
<TopHeader />
<Header />
<main className="flex-1">{children}</main>
<Footer />
</AppProviders>
</body>
</html>
);