Spaces:
Runtime error
Runtime error
File size: 960 Bytes
bbc5521 46085c7 bbc5521 46085c7 fd0f6b9 939f16c bbc5521 fd0f6b9 bbc5521 46085c7 fd0f6b9 46085c7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | 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>
);
}
|