import { CreateWorkspaceForm, RequireActiveTenancy } from "@wacht/react-router";
export default function NewProjectModal() {
return (
<div className="p-8 bg-white border border-zinc-200 rounded-2xl shadow-xl max-w-lg w-full">
<div className="mb-6 border-b pb-4">
<h3 className="text-xl font-bold text-zinc-900 tracking-tight">Initialize Workspace</h3>
<p className="text-sm text-zinc-500 mt-1">Create an isolated environment for your project resources.</p>
</div>
{/*
Strict boundary: the fallback UI renders if the user
somehow bypassed selecting an organization.
*/}
<RequireActiveTenancy fallback={
<div className="p-4 bg-amber-50 text-amber-800 rounded-lg text-sm font-medium">
You must select an organization before creating a workspace.
</div>
}>
<CreateWorkspaceForm />
</RequireActiveTenancy>
</div>
);
}