Files
hcl-finances-manager/src/app/(app)/layout.tsx
T
2026-10-27 18:14:57 +01:00

19 lines
622 B
TypeScript

import { MobileNav } from "@/components/MobileNav";
import { Sidebar } from "@/components/Sidebar";
import { requireUser } from "@/server/auth";
import { syncRecurrings } from "@/server/sync";
export const dynamic = "force-dynamic";
export default async function AppLayout({ children }: { children: React.ReactNode }) {
const user = await requireUser();
await syncRecurrings();
return (
<div className="min-h-dvh md:flex">
<Sidebar user={user} />
<main className="mx-auto w-full max-w-[1200px] flex-1 px-4 pb-28 pt-5 md:px-7 md:pb-8 md:pt-6">{children}</main>
<MobileNav />
</div>
);
}