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:
co-authored by
Cursor
parent
c2552af079
commit
c53fb99330
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user