import type { ReactNode } from "react";
import { MarketplaceProvider } from "@/contexts/marketplace/MarketplaceContext";
import { MarketplaceShell } from "@/components/marketplace/layout/MarketplaceShell";
import { LocationProvider } from "@/providers/LocationProvider";

export const metadata = {
  title: "Marketplace — Buy & Sell",
  description: "Discover great deals and sell your items on our trusted marketplace.",
};

export default function MarketplaceLayout({ children }: { children: ReactNode }) {
  return (
    <LocationProvider>
      <MarketplaceProvider>
        <MarketplaceShell>
          {children}
        </MarketplaceShell>
      </MarketplaceProvider>
    </LocationProvider>
  );
}
