import { Suspense } from "react";
import BarterPitChrome from "@/components/barter/BarterPitChrome";

export default function BarterLayout({ children }: { children: React.ReactNode }) {
  return (
    <BarterPitChrome>
      <Suspense
        fallback={
          <div className="py-16 text-center font-mono text-sm text-[#5a7d62]">Loading trading floor…</div>
        }
      >
        {children}
      </Suspense>
    </BarterPitChrome>
  );
}
