Add shared customer auth, cart handoff, and account dropdown.

Mirror Meshkee customer sessions onto the storefront, continue checkout on the customer dashboard, and show profile/orders/admin links under the header name.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-25 16:41:00 +03:30
co-authored by Cursor
parent c2552af079
commit c53fb99330
30 changed files with 2492 additions and 32 deletions
+18
View File
@@ -0,0 +1,18 @@
"use client";
import { AuthProvider } from "@/lib/auth";
import { CartProvider } from "@/lib/cart";
export function AppProviders({
children,
businessId,
}: {
children: React.ReactNode;
businessId: string;
}) {
return (
<AuthProvider businessId={businessId}>
<CartProvider>{children}</CartProvider>
</AuthProvider>
);
}