Spaces:
Runtime error
Runtime error
Download apps/web/src/components/AppShell.tsx from Oheha/cybully-api: direct link, hf CLI and curl.
- Browser
- Download file 960 Bytes
-
https://huggingface.co/spaces/Oheha/cybully-api/resolve/main/apps/web/src/components/AppShell.tsx
- Command line
-
hf download hf://spaces/Oheha/cybully-api/apps/web/src/components/AppShell.tsx
-
curl -L -o AppShell.tsx https://huggingface.co/spaces/Oheha/cybully-api/resolve/main/apps/web/src/components/AppShell.tsx
960 Bytes
| import type { AppSession } from "@/lib/auth"; | |
| import { BrandLogo } from "@/components/BrandLogo"; | |
| import { ProfileMenu } from "@/components/ProfileMenu"; | |
| type AppShellProps = { | |
| session: AppSession; | |
| children: React.ReactNode; | |
| }; | |
| export function AppShell({ session, children }: AppShellProps) { | |
| return ( | |
| <div className="min-h-screen bg-surface"> | |
| <header className="bg-surface"> | |
| <div className="mx-auto flex max-w-6xl items-center justify-between gap-3 px-4 py-4 sm:gap-4 sm:px-6 sm:py-6 lg:px-8"> | |
| <BrandLogo href="/app" className="min-w-0" /> | |
| <div className="flex items-center justify-between gap-4"> | |
| <ProfileMenu | |
| email={session.user?.email} | |
| name={session.user?.name} | |
| role={session.user?.role} | |
| /> | |
| </div> | |
| </div> | |
| </header> | |
| <main className="mx-auto max-w-6xl px-4 pb-12 sm:px-6 lg:px-8">{children}</main> | |
| </div> | |
| ); | |
| } | |