import { useSelector } from "react-redux" ; import { AppState } from "../../../store" ; export const useGameBoard = ( ) => useSelector ( ( state ) => state . game . board ) ; export const useGameBench = ( ) => useSelector ( ( state ) => state . game . bench ) ; export const useGameMatchBoard = ( ) => useSelector ( ( state ) => state . game . match . board ) ;