feat: add docs routing

This commit is contained in:
Tom Boullay
2026-04-27 15:32:39 +02:00
parent b523e98bea
commit 7139ae559e
7 changed files with 1881 additions and 21 deletions
+3 -18
View File
@@ -1,23 +1,8 @@
import { Suspense } from "react";
import { Canvas } from "@react-three/fiber";
import { Crosshair } from "@/components/ui/Crosshair";
import { InteractPrompt } from "@/components/ui/InteractPrompt";
import { DebugPerf } from "@/utils/debug/DebugPerf";
import { World } from "@/world/World";
import { RouterProvider } from "@tanstack/react-router";
import { router } from "@/router";
function App(): React.JSX.Element {
return (
<>
<Canvas camera={{ position: [85, 60, 85], fov: 42 }} shadows>
<Suspense fallback={null}>
<World />
<DebugPerf />
</Suspense>
</Canvas>
<Crosshair />
<InteractPrompt />
</>
);
return <RouterProvider router={router} />;
}
export default App;