import LichessButton from "#/components/LichessButton.tsx"; import PgnViewer from "#/components/PgnViewer.tsx"; import Section from "#/components/Section.tsx"; import { useChessGame } from "#/hooks/useChessGame.ts"; const Chessboard = () => { const { gameState, fileInputRef, currentPosition, generatingPdf, handleLoadPgn, handleClearGame, handleSavePgn, handleSavePdf, handleToggleClock, handleToggleDiagram, handlePlyChange, } = useChessGame(); return (
or{" "}
d.ply === currentPosition.ply, )} onChange={handleToggleDiagram} />
); }; export default Chessboard;