import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import Sidebar from "@/components/Sidebar";
import { Toaster } from 'react-hot-toast';

const inter = Inter({ subsets: ["latin"] });

export const metadata: Metadata = {
  title: "AfroAdmin - Administration Afropreunariat",
  description: "Panneau d'administration pour la plateforme Afropreunariat",
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="fr">
      <body className={inter.className}>
        <Toaster position="bottom-right" />
        <div className="flex min-h-screen">
          <Sidebar />
          <main className="admin-content flex-1">
            {children}
          </main>
        </div>
      </body>
    </html>
  );
}
