refacto : cleaning the codebasebase again
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { useCameraMode } from "@/hooks/debug/useCameraMode";
|
||||
import { useInteractionSelector } from "@/hooks/useInteraction";
|
||||
import { useInteraction } from "@/hooks/useInteraction";
|
||||
|
||||
export function Crosshair(): React.JSX.Element | null {
|
||||
const cameraMode = useCameraMode();
|
||||
const focused = useInteractionSelector((state) => state.focused);
|
||||
const { focused } = useInteraction();
|
||||
|
||||
if (cameraMode !== "player") return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user