diff --git a/src/components/app-shell.tsx b/src/components/app-shell.tsx index 9482891..16faaa3 100644 --- a/src/components/app-shell.tsx +++ b/src/components/app-shell.tsx @@ -1,9 +1,20 @@ "use client"; +import { usePathname } from "next/navigation"; import { Sidebar } from "@/components/sidebar"; import { AppTray } from "@/components/app-tray"; +function isChromeHiddenRoute(pathname: string) { + return pathname === "/" || pathname === "/access-denied" || pathname.startsWith("/invite/"); +} + export function AppShell({ children }: { children: React.ReactNode }) { + const pathname = usePathname(); + + if (isChromeHiddenRoute(pathname)) { + return
{children}
; + } + return (