import { notFound } from "next/navigation"; import type { ReactNode } from "react"; import { fetchTenantBySlug } from "@/lib/tenant-registry"; export default async function TenantLayout({ children, params, }: { children: ReactNode; params: Promise<{ slug: string }>; }) { const { slug } = await params; const tenant = await fetchTenantBySlug(slug); if (!tenant) notFound(); return (