import type { ReactNode } from "react"; import type { Metadata } from "next"; import { LogoutButton } from "@/components/logout-button"; import { Sidebar } from "@/components/sidebar"; import { getSession } from "@/lib/auth"; import "./globals.css"; export const metadata: Metadata = { title: "Inven", description: "Inventory management with kits, sales, purchasing, and accounting." }; export default async function RootLayout({ children }: Readonly<{ children: ReactNode }>) { const session = await getSession(); return (

Inven Control Center

A single-container operating system for stocked parts, kit assemblies, purchasing, shipping, customer records, vendor records, and accounting visibility.

{session ? (
Signed in as {session.email} ({session.role})
) : null}
{session ? (
{children}
) : (
{children}
)}
); }