feat : add chessCom games import
This commit is contained in:
20
src/sections/loadGame/gamePgnInput.tsx
Normal file
20
src/sections/loadGame/gamePgnInput.tsx
Normal 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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user