import { Router } from "@solidjs/router"
import { FileRoutes } from "@solidjs/start/router"
import { Suspense } from "solid-js"
import "./app.css"
import I18nProvider from "./components/I18nProvider"

export default function App() {
    return (
        <Router
            root={({ children }) => (
                <>
                    <Suspense>
                        <I18nProvider>{children}</I18nProvider>
                    </Suspense>
                </>
            )}
        >
            <FileRoutes />
        </Router>
    )
}
