"use client"
import "react-toastify/dist/ReactToastify.css";
import Sidebar from "@/ui/layout/Sidebar";
import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider';
import { AdapterDateFnsJalali } from '@mui/x-date-pickers/AdapterDateFnsJalali';
export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <div className="grid grid-cols-12">
      <div className="col-span-2 flex flex-col justify-center items-center h-full">
        <Sidebar />
      </div>
      <LocalizationProvider dateAdapter={AdapterDateFnsJalali}>
        <div className="col-span-10 h-full ">{children}</div>
      </LocalizationProvider>
    </div>
  );
}
