mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 09:56:57 +00:00
21 lines
594 B
TypeScript
21 lines
594 B
TypeScript
import { useChessGame } from "#/hooks/useChessGame.ts";
|
|
import Chessboard from "#/pages/Chessboard.tsx";
|
|
|
|
const ChessboardContainer = () => {
|
|
const chessGameProps = useChessGame();
|
|
|
|
return (
|
|
<Chessboard
|
|
gameState={chessGameProps.gameState}
|
|
handleLoadPgn={chessGameProps.handleLoadPgn}
|
|
handleClearGame={chessGameProps.handleClearGame}
|
|
handleSavePgn={chessGameProps.handleSavePgn}
|
|
handleSavePdf={chessGameProps.handleSavePdf}
|
|
handleToggleClock={chessGameProps.handleToggleClock}
|
|
fileInputRef={chessGameProps.fileInputRef}
|
|
/>
|
|
);
|
|
};
|
|
|
|
export default ChessboardContainer;
|