import React from 'react'
import ReactDOM from 'react-dom/client'
import { EmailEditorApp } from './EmailEditorApp'

// Entry point — mounts the easy-email editor app on #root.
// Template name comes from URL query: ?name=gift-email-fr
// In production the page lives at editor.gigafibre.ca and is iframed from
// the ops UI's /campaigns/templates/:name route.

ReactDOM.createRoot(document.getElementById('root')!).render(
  <React.StrictMode>
    <EmailEditorApp />
  </React.StrictMode>,
)
