// app/my/rigs/page.tsx
import SignOutButton from "@/components/SignOutButton";
import RigBuilderClient from "./RigBuilderClient";

export const metadata = {
    title: "My Rigs",
};

export default async function MyRigsPage() {
    // Server shell only; the client component does all fetching with the
    // user cookie via our /api/* routes so auth is preserved.
    return (
        <main className="mx-auto max-w-5xl px-6 py-10">
        <div className="mb-6 flex items-center justify-between">
        <h1 className="text-3xl font-bold tracking-tight">My Rigs</h1>
        <SignOutButton className="text-sm opacity-75 hover:opacity-100" />
        </div>

        <RigBuilderClient />
        </main>
    );
}
