feat : add chessCom games import

This commit is contained in:
GuillaumeSD
2024-02-27 03:32:46 +01:00
parent b2b80b1cc1
commit 13a4bc06b6
13 changed files with 270 additions and 30 deletions

View File

@@ -0,0 +1,20 @@
import { FormControl, TextField } from "@mui/material";
interface Props {
pgn: string;
setPgn: (pgn: string) => void;
}
export default function GamePgnInput({ pgn, setPgn }: Props) {
return (
<FormControl sx={{ m: 1, width: 600 }}>
<TextField
label="Enter PGN here..."
variant="outlined"
multiline
value={pgn}
onChange={(e) => setPgn(e.target.value)}
/>
</FormControl>
);
}