first commit
This commit is contained in:
@ -0,0 +1,6 @@
|
||||
import { useDraughtsBoard } from '../DraughtsBoardContext';
|
||||
|
||||
export function useDraughtsPlayerToMove(player) {
|
||||
const { board } = useDraughtsBoard();
|
||||
return player === board.playerToMove;
|
||||
}
|
||||
Reference in New Issue
Block a user