"use client";

import type { ReactNode } from "react";
import { AccountProvider } from "@/contexts/AccountContext";
import { CartProvider } from "@/contexts/CartContext";
import { WalletProvider } from "@/contexts/WalletContext";

/** Client-only wrappers so wallet + persistent account work on every route. */
export default function AppProviders({ children }: { children: ReactNode }) {
  return (
    <WalletProvider>
      <AccountProvider>
        <CartProvider>{children}</CartProvider>
      </AccountProvider>
    </WalletProvider>
  );
}
