import { AppSidebar } from "@/components/app-sidebar";
import { Toaster } from "sonner";

export default function MainLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <div className="flex h-screen overflow-hidden">
      <AppSidebar />
      <main className="flex-1 overflow-auto bg-background">{children}</main>
      <Toaster position="top-right" richColors closeButton />
    </div>
  );
}
