makearmy-app/app/rigs/page.tsx

31 lines
875 B
TypeScript
Raw Normal View History

2025-09-29 19:42:51 -04:00
// app/rigs/page.tsx
import RigBuilderServer from "./RigBuilderServer";
import RigsListClient from "./RigsListClient";
2025-09-29 18:51:35 -04:00
2025-09-29 19:42:51 -04:00
export default function Page() {
return (
<div className="p-4 space-y-6">
<header>
<h1 className="text-2xl font-bold mb-1">Rigs</h1>
<p className="text-sm text-muted-foreground">
Manage rigs used when submitting settings.
</p>
</header>
2025-09-29 19:12:10 -04:00
2025-09-29 19:42:51 -04:00
<div className="grid gap-6 md:grid-cols-2">
{/* Left: existing rigs */}
<section>
<h2 className="text-lg font-semibold mb-2">My Rigs</h2>
<RigsListClient />
</section>
2025-09-29 19:12:10 -04:00
2025-09-29 19:42:51 -04:00
{/* Right: create a new rig (server-provided rig types) */}
<section>
<h2 className="text-lg font-semibold mb-2">Create Rig</h2>
<RigBuilderServer />
</section>
</div>
2025-09-29 19:39:37 -04:00
</div>
);
2025-09-27 15:12:08 -04:00
}