import { Metadata } from "next"; import { Suspense } from "react"; import { cookies } from "next/headers"; import { auth } from "@/app/(auth)/auth"; import { TopNavbar } from "@/components/top-navbar"; import { getSiteSettings, getNavLinks } from "@/lib/db/queries"; export const metadata: Metadata = { title: "无限画布", description: "AI 驱动的无限画布创作工具", }; export default function CanvasEditorLayout({ children, }: { children: React.ReactNode; }) { return ( }> {children} ); } async function CanvasLayoutWrapper({ children }: { children: React.ReactNode }) { const [session, siteSettings, navLinks] = await Promise.all([ auth(), getSiteSettings(), getNavLinks(), ]); return (
({ id: link.id, name: link.name, url: link.url, order: link.order }))} />
{children}
); }