Skip to content

Commit

Permalink
add useBoardPosition hook
Browse files Browse the repository at this point in the history
  • Loading branch information
deveshidwivedi committed Jun 20, 2024
1 parent 295ab1a commit 65cae71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions modules/room/hooks/useBoardPosition.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

import { useContext } from "react";

export const useBoardPosition = () => {
const { x, y } = useContext(roomContext);
return { x, y };
};

0 comments on commit 65cae71

Please sign in to comment.