import type { Metadata } from "next"; import { cookies } from "next/headers"; import "./globals.css"; import Header from "@/components/Header"; import Footer from "@/components/Footer"; export const metadata: Metadata = { title: "姜十三论坛", description: "姜十三论坛 - 技术分享与讨论社区", openGraph: { title: "姜十三论坛", description: "姜十三论坛 - 技术分享与讨论社区", type: "website", }, }; export default async function RootLayout({ children, }: { children: React.ReactNode; }) { const cookieStore = await cookies(); const theme = cookieStore.get("j13-theme")?.value || "light"; return (