import { StrictMode, useState } from 'react'; import { createRoot } from 'react-dom/client'; import { BrowserRouter as Router, Routes, Route, useLocation } from 'react-router-dom'; import App from './App.tsx'; import Contact from './Contact.tsx'; import './index.css'; import { translations } from './translations'; import { Language } from './types'; function AppWrapper() { const [currentLang, setCurrentLang] = useState('nl'); const t = (key: string) => { const translation = translations[key]?.[currentLang] || key; return translation.replace(/(.*?)<\/blue>/g, (_, text) => `${text}` ); }; return ( } /> } /> ); } createRoot(document.getElementById('root')!).render( );