import type { Metadata } from "next"; import { Vazirmatn } from "next/font/google"; import { Providers } from "@/components/Providers"; import "./globals.css"; const vazir = Vazirmatn({ variable: "--font-vazir", subsets: ["arabic", "latin"], display: "swap", }); export const metadata: Metadata = { title: "پنل مدیریت آرام جان", description: "پنل مدیریت محتوای اپلیکیشن آرام جان", }; // Runs before paint to set the `.dark` class from saved preference / system, // avoiding a light flash on load. Kept inline + minimal on purpose. const noFlashTheme = `(function(){try{var t=localStorage.getItem('aram_theme');if(!t){t=window.matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}if(t==='dark'){document.documentElement.classList.add('dark');}}catch(e){}})();`; export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return (