forked from koshikraj/ottopus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlayout.tsx
More file actions
23 lines (22 loc) · 892 Bytes
/
Copy pathlayout.tsx
File metadata and controls
23 lines (22 loc) · 892 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import type { ReactNode } from 'react'
import { SessionAgentCard } from '@/components/agents'
import { RequireSession, SessionAccountMenu } from '@/components/auth'
import { RequestsProvider } from '@/components/requests/provider'
import { AppShell } from '@/components/shell'
/**
* Everything in this group is inside the app frame. Taking a page out means
* moving it to (public) and writing down why in PUBLIC_ROUTES — routes.test.ts
* fails otherwise, which is what makes opting out deliberate rather than a
* side effect of where someone happened to create a folder.
*/
export default function ShellLayout({ children }: { children: ReactNode }) {
return (
<RequireSession>
<RequestsProvider>
<AppShell agent={<SessionAgentCard />} account={<SessionAccountMenu />}>
{children}
</AppShell>
</RequestsProvider>
</RequireSession>
)
}