import { ReactNode } from "react";
import { Metadata } from "next";
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
import { MultiProvider } from "./_components/MultiProvider";
import "./_styles/global.css";

export const dynamic = "force-dynamic";

export const metadata: Metadata = {
  title: "CDR Link",
};

type LayoutProps = {
  children: ReactNode;
};

export default function Layout({ children }: LayoutProps) {
  return (
    <html lang="en">
      <body>
        <AppRouterCacheProvider>
          <MultiProvider>{children}</MultiProvider>
        </AppRouterCacheProvider>
      </body>
    </html>
  );
}
