We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb471fd commit 2350efeCopy full SHA for 2350efe
1 file changed
apps/web/src/app/admin/layout.tsx
@@ -1,7 +1,10 @@
1
+import { ConsoleShell } from "@/components/console/shell";
2
import { isAdmin } from "@/lib/admin";
3
import { apiRequest, getSessionFromCookies } from "@/lib/api";
4
+import { TopbarProvider } from "@/lib/topbar-context";
5
import type { Account } from "@/lib/types";
6
import { redirect } from "next/navigation";
7
+import "@/styles/console.css";
8
9
export default async function AdminLayout({
10
children,
@@ -20,5 +23,9 @@ export default async function AdminLayout({
20
23
redirect("/");
21
24
}
22
25
- return <>{children}</>;
26
+ return (
27
+ <TopbarProvider>
28
+ <ConsoleShell>{children}</ConsoleShell>
29
+ </TopbarProvider>
30
+ );
31
0 commit comments