import type {Metadata} from "next";
import "./globals.css";
import {FontVazir} from "@/config/font.config";
import {ToastContainer} from "react-toastify";

export const metadata: Metadata = {
  title: "پنل مدیریت وب سایت بیماران بین الملل",
  description: "Generated by create next app",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en" dir="rtl">
      <body
        className={`${FontVazir.variable} antialiased`}
        style={{fontFamily: FontVazir.style.fontFamily}}
      >
        {children}
        <ToastContainer
          style={{fontFamily: FontVazir.style.fontFamily,fontSize:'14px'}}
          position="top-right"
          autoClose={3000}
          hideProgressBar={false}
          newestOnTop
          closeOnClick
          pauseOnHover
          draggable
        />
      </body>
    </html>
  );
}
