25 lines
1000 B
TypeScript
25 lines
1000 B
TypeScript
"use client";
|
|
|
|
import { observer } from "mobx-react";
|
|
// components
|
|
import type { Route } from "./+types/page";
|
|
import { WorkspaceCreateForm } from "./form";
|
|
|
|
const WorkspaceCreatePage = observer<React.FC<Route.ComponentProps>>(() => (
|
|
<div className="relative container mx-auto w-full h-full p-4 py-4 space-y-6 flex flex-col">
|
|
<div className="border-b border-custom-border-100 mx-4 py-4 space-y-1 flex-shrink-0">
|
|
<div className="text-xl font-medium text-custom-text-100">Create a new workspace on this instance.</div>
|
|
<div className="text-sm font-normal text-custom-text-300">
|
|
You will need to invite users from Workspace Settings after you create this workspace.
|
|
</div>
|
|
</div>
|
|
<div className="flex-grow overflow-hidden overflow-y-scroll vertical-scrollbar scrollbar-md px-4">
|
|
<WorkspaceCreateForm />
|
|
</div>
|
|
</div>
|
|
));
|
|
|
|
export const meta: Route.MetaFunction = () => [{ title: "Create Workspace - God Mode" }];
|
|
|
|
export default WorkspaceCreatePage;
|