Files
sanihome/src/components/providers/AppProviders.tsx
T
Alireza HassaniandCursor c53fb99330 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>
2026-08-25 16:41:00 +03:30

19 lines
347 B
TypeScript

"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>
);
}