import { createRoot } from 'react-dom/client';
import { App } from './App.tsx';
import './globals.css';
import { initI18n, I18NextProvider } from './I18Next.tsx';
import { basename } from './modules/basename.ts';
import { Suspense } from 'react';

initI18n(basename);

createRoot(document.getElementById('root')!).render(
  <I18NextProvider>
    <Suspense fallback={<div>Loading...</div>}>
      <App />
    </Suspense>
  </I18NextProvider>,
);
