Files
chess-scribe-website/src/components/PgnViewer.tsx
T

16 lines
398 B
TypeScript

import { useLichessPgnViewer } from "#/hooks/useLichessPgnViewer.ts";
import type { IPosition } from "#/interfaces.ts";
interface IProps {
gamePgn: string;
handlePlyChange: ({ ply, fen }: IPosition) => void;
}
const PgnViewer = ({ gamePgn, handlePlyChange }: IProps) => {
useLichessPgnViewer({ gamePgn, handlePlyChange });
return <div className="lpv-board" />;
};
export default PgnViewer;