33 | {/* Sidebar */}
34 |
35 |
36 | {/* Main content area */}
37 |
38 |
39 |
40 | {/* Page content */}
41 |
42 | {children}
43 |
44 |
45 |
46 |
47 |
48 | );
49 | }
50 |
--------------------------------------------------------------------------------
/clients/web/app/(authenticated)/workspaces/page.tsx:
--------------------------------------------------------------------------------
1 | import ErrorPage from "@/components/ErrorPage";
2 | import { WorkspaceWithConversations } from "@/lib/sesameApi";
3 | import { getWorkspaces } from "@/lib/workspaces";
4 | import { redirect } from "next/navigation";
5 |
6 | export default async function WorkspacesPage() {
7 | let workspaces: WorkspaceWithConversations[];
8 | try {
9 | workspaces = await getWorkspaces();
10 | } catch {
11 | return (
12 |