---
import AdminLayout from '@/layouts/AdminLayout.astro';
import { EnhancedPageBuilder } from '@/components/admin/pages/EnhancedPageBuilder';

const { id } = Astro.params;
const siteId = Astro.url.searchParams.get('site') || '';
---

<AdminLayout title="Page Builder">
  <EnhancedPageBuilder 
    pageId={id === 'new' ? undefined : id}
    siteId={siteId}
    client:only="react"
  />
</AdminLayout>
