diff --git a/modules/room/hooks/useBoardPosition.ts b/modules/room/hooks/useBoardPosition.ts new file mode 100644 index 0000000..f35c145 --- /dev/null +++ b/modules/room/hooks/useBoardPosition.ts @@ -0,0 +1,7 @@ + +import { useContext } from "react"; + +export const useBoardPosition = () => { + const { x, y } = useContext(roomContext); + return { x, y }; +}; \ No newline at end of file