Spaces:
Running

WorkPilot-AI / web /src /app /(app) /layout.tsx
Aynkhn's picture
Deploy WorkPilot demo (part 3)
03608f2 verified
Raw History Blame Contribute Delete
461 Bytes
import { Suspense } from "react";
import { AppGate, FullPageLoading } from "@/components/shell/app-gate";
// Everything behind sign-in renders on the client (tokens live in browser memory), so the
// static shell is just a loading state and the rest streams in.
export default function AppLayout({ children }: LayoutProps<"/">) {
return (
<Suspense fallback={<FullPageLoading />}>
<AppGate>{children}</AppGate>
</Suspense>
);
}