import './i18n';
import React from 'react';
import ReactDOM from 'react-dom/client';
import type {NavigateOptions} from "react-router-dom";
import {BrowserRouter} from "react-router-dom";
import VkvApp from './VkvApp'

const rootElement = document.getElementById('root')
if (!rootElement) {
  throw new Error('Root element not found')
}

declare module "@react-types/shared" {
  interface RouterConfig {
    routerOptions: NavigateOptions;
  }
}

ReactDOM.createRoot(rootElement).render(
  <React.StrictMode>
    <BrowserRouter>
      <VkvApp />
    </BrowserRouter>
  </React.StrictMode>,
);
