/**
 * Entry point: Upgrade modals.
 * Mounts <UpgradeModals> into #pdfib-upgrade-modals-root.
 * Exposes window.showUpgradeModal / window.closeUpgradeModal for legacy PHP/JS code.
 */
import React from 'react';
import { createRoot } from 'react-dom/client';
import UpgradeModals from '../react/components/admin/UpgradeModals';

document.addEventListener('DOMContentLoaded', () => {
  const container = document.getElementById('pdfib-upgrade-modals-root');
  if (!container) return;
  createRoot(container).render(<UpgradeModals />);
});
