refacto : cleaning the codebasebase again

This commit is contained in:
Tom Boullay
2026-04-19 16:50:11 +02:00
parent 1c48441535
commit 0f96b5597b
26 changed files with 127 additions and 5726 deletions
+2 -3
View File
@@ -1,11 +1,10 @@
import { INTERACT_KEY } from "@/data/keybindings";
import { useCameraMode } from "@/hooks/debug/useCameraMode";
import { useInteractionSelector } from "@/hooks/useInteraction";
import { useInteraction } from "@/hooks/useInteraction";
export function InteractPrompt(): React.JSX.Element | null {
const cameraMode = useCameraMode();
const focused = useInteractionSelector((state) => state.focused);
const holding = useInteractionSelector((state) => state.holding);
const { focused, holding } = useInteraction();
if (cameraMode !== "player") return null;
if (!focused || holding || focused.kind !== "trigger") return null;