move debug components out of utils

This commit is contained in:
2026-04-28 14:47:26 +02:00
parent e20ead88e1
commit 2dd5bfeda1
5 changed files with 3 additions and 3 deletions
+18
View File
@@ -0,0 +1,18 @@
import { Suspense, lazy } from "react";
import { Debug } from "@/utils/debug/Debug";
const Perf = lazy(() => import("r3f-perf").then((m) => ({ default: m.Perf })));
export function DebugPerf(): React.JSX.Element | null {
const debug = Debug.getInstance();
if (!debug.active) {
return null;
}
return (
<Suspense fallback={null}>
<Perf position="bottom-right" />
</Suspense>
);
}