import React from 'react';
import { ToastProvider } from '@/hooks/useToast';
import { Sidebar } from './sidebar';

interface MainLayoutProps {
  children: React.ReactNode;
}

export function MainLayout({ children }: MainLayoutProps) {
  return (
    <ToastProvider>
      <div className="flex h-screen bg-background">
        <Sidebar />

        <main className="flex-1 overflow-auto">
          <div className="p-6">{children}</div>
        </main>
      </div>
    </ToastProvider>
  );
}
