import { CopyButton } from "@/components/dashboard/copy-button"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Code } from "@/components/ui/code"; // import { getTenantId } from "@/lib/auth"; // import { db } from "@/lib/db"; import { redirect } from "next/navigation"; // import { UpdateWorkspaceImage } from "./update-workspace-image"; import { UpdateWorkspaceName } from "./update-workspace-name"; import Link from "next/link"; import { ArrowLeft, UploadCloud } from "lucide-react"; import { UpdateWorkspace } from "./update-workspace"; import { Textarea } from "@/components/ui/textarea"; import { Button } from "@/components/ui/button"; import Loading from "../../apis/loading"; export const dynamic = "force-dynamic"; export default async function SettingsPage() { // const tenantId = getTenantId(); // const workspace = await db.query.workspaces.findFirst({ // where: (table, { and, eq, isNull }) => // and(eq(table.tenantId, tenantId), isNull(table.deletedAt)), // }); // if (!workspace) { // return redirect("/new"); // } const workspace = { id: "string", tenantId: "string", name: "string", } // const dragActive = true return (
{/* */} {/* */} Manage {/* Workspace Avatar

This is a personal workspace. Change your personal avatar{" "} here .

*/} Workspace ID xxxxxxxx
{workspace.id}
); }