Files
auto-trade/app/(main)/layout.tsx
2026-02-11 14:06:06 +09:00

26 lines
698 B
TypeScript

import { Header } from "@/features/layout/components/header";
import { MobileBottomNav, Sidebar } from "@/features/layout/components/sidebar";
import { createClient } from "@/utils/supabase/server";
export default async function MainLayout({
children,
}: {
children: React.ReactNode;
}) {
const supabase = await createClient();
const {
data: { user },
} = await supabase.auth.getUser();
return (
<div className="flex min-h-screen flex-col bg-background">
<Header user={user} />
<div className="flex flex-1 pt-16">
<Sidebar />
<main className="min-w-0 flex-1 pb-20 md:pb-0">{children}</main>
</div>
<MobileBottomNav />
</div>
);
}