import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import siteConfig from './config/site.config'
import './index.css'
import App from './App.tsx'

// Set initial document title and meta from config
document.title = siteConfig.meta.title
const metaDescription = document.querySelector('meta[name="description"]')
if (metaDescription) {
  metaDescription.setAttribute('content', siteConfig.meta.description)
}

createRoot(document.getElementById('root')!).render(
  <StrictMode>
    <App />
  </StrictMode>,
)
