import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App'
import './fonts.css'
import './index.css'
import './i18n'

const root = ReactDOM.createRoot(document.getElementById('root'))

root.render(
  <React.StrictMode>
    <App />
  </React.StrictMode>
)

if (typeof window !== 'undefined') {
  const removeFallback = () => window.__trustarterRemoveFallback?.()
  // Ждём завершения первой отрисовки React
  requestAnimationFrame(() => requestAnimationFrame(removeFallback))
}
