mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
16 lines
398 B
TypeScript
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;
|