import { AuthProvider } from '@/components/providers/auth-provider';
import { SiteProvider } from '@/contexts/site-context';
import { Sidebar } from '@/components/layout/sidebar';
import { Header } from '@/components/layout/header';

export default function AdminLayout({
  children,
}: {
  children: React.ReactNode;
}) {
  return (
    <AuthProvider>
      <SiteProvider>
        <div className="min-h-screen bg-primary-50">
          <Sidebar />
          <div className="pl-64">
            <Header />
            <main className="p-6">{children}</main>
          </div>
        </div>
      </SiteProvider>
    </AuthProvider>
  );
}
