import React, { StrictMode } from 'react';
import ReactDOM from 'react-dom/client';
import reportWebVitals from './reportWebVitals.ts';
import './i18n.ts';
// Import the generated route tree
import './styles.css';
import App from './App.tsx';
import { AuthProvider } from './context/auth.tsx';

// Render the app
const root = ReactDOM.createRoot(document.getElementById('root')!);
root.render(
	<StrictMode>
		<AuthProvider>
			<App />
		</AuthProvider>
	</StrictMode>
);

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
