import type { Metadata } from "next"; import { cookies } from "next/headers"; import React, { Suspense } from "react"; import { RefineContext } from "./_refine_context"; import { META_DATA } from "@config/config"; export const metadata: Metadata = META_DATA; export default async function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { const cookieStore = await cookies(); const theme = cookieStore.get("theme"); const defaultMode = theme?.value === "dark" ? "dark" : "light"; return (