import type { Metadata } from "next"; import { Inter, Open_Sans, Fira_Code } from "next/font/google"; import "./globals.css"; import LayoutWrapper from "./LayoutWrapper"; import { ThemeProvider } from "next-themes"; import { getAgencyLogo } from "@/lib/server-api"; const inter = Inter({ variable: "--font-inter", subsets: ["latin"], weight: ["400", "500", "600", "700"], }); const openSans = Open_Sans({ variable: "--font-open-sans", subsets: ["latin"], weight: ["600", "700"], }); const firaCode = Fira_Code({ variable: "--font-fira-code", subsets: ["latin"], weight: ["400", "600"], }); export async function generateMetadata(): Promise { const logoUrl = await getAgencyLogo(); return { title: "Aggios - Dashboard", description: "Plataforma SaaS para agĂȘncias digitais", icons: { icon: logoUrl || '/favicon.ico', shortcut: logoUrl || '/favicon.ico', apple: logoUrl || '/favicon.ico', }, }; } export default function RootLayout({ children, }: Readonly<{ children: React.ReactNode; }>) { return ( {children} ); }