import { AdminHeaderPage } from '@/app/components/layout/admin/header';
import { AdminSideBar } from '@/app/components/layout/admin/sidebar';

export default function AdminLayout({ children }: { children: React.ReactNode }) {
  return (
    <div className="flex h-screen bg-slate-100/50 text-slate-900 font-sans overflow-hidden">
      <AdminSideBar />

      <main className="flex-1 min-w-0 min-h-0 overflow-y-auto flex flex-col">
        <AdminHeaderPage />
        <div className="flex-1 min-h-0">{children}</div>
      </main>
    </div>
  );
}
