import { TemplateEditor } from '@/components/admin/templates/template-editor';

/**
 * Phase 7.1 - PDF template editor (read + place markers).
 *
 * Renders the source PDF for the selected template and lets the admin
 * drop merge-field markers by clicking on the page. Persists the marker
 * coordinates to `document_templates.overlay_positions` via PATCH so
 * the existing `pdf_overlay` fill path can use them at generate time.
 *
 * Phase 7.2 (drag/resize/preview/multi-page) is queued separately.
 */
export default function TemplateEditorPage({ params }: { params: { id: string } }) {
  return <TemplateEditor templateId={params.id} />;
}
