import type { Metadata } from "next"; import "./globals.css"; import { languages } from "@/i18n/settings"; import { Toaster } from "@/components/ui/toaster" import { ThemeProvider } from "@/components/layout/providers"; // 기존 ThemeProvider 사용 import { cn } from "@/lib/utils" import { META_THEME_COLORS, siteConfig } from "@/config/site" import { LicenseInfo } from '@mui/x-license'; import { ToasterSonner } from "@/components/ui/toasterSonner"; import localFont from "next/font/local"; LicenseInfo.setLicenseKey(process.env.NEXT_PUBLIC_MUI_KEY as string); const inter = localFont({ src: [ { path: '../public/fonts/Inter-Regular.woff2', weight: '400', style: 'normal', }, { path: '../public/fonts/Inter-Medium.woff2', weight: '500', style: 'normal', }, { path: '../public/fonts/Inter-Bold.woff2', weight: '700', style: 'normal', }, ] }) export const generateStaticParams = async () => { return languages.map((lng) => ({ lng })); }; export const metadata: Metadata = { title: { default: siteConfig.name, template: `%s - ${siteConfig.name}`, }, metadataBase: new URL(siteConfig.url), description: siteConfig.description, authors: [ { name: "DTS", url: "https://dtsoution.io", }, ], creator: "dujin", }; export default async function RootLayout({ children, params: { lng }, }: { children: React.ReactNode; params: { lng: string }; }) { return (
{/* ✅ 기존 ThemeProvider에 lng prop 전달 */}