This commit is contained in:
Maciej Caderek
2022-02-12 15:04:08 +01:00
parent 24474d98ce
commit f4b0d337ac
5 changed files with 35 additions and 12 deletions

View File

@@ -28,16 +28,18 @@ export type State = {
board: BoardConfig;
game: GameConfig;
pgn: string | null;
fen: string | null;
fen: string;
moves: string[];
ply: number;
};
const initialState: State = {
board: boardConfig,
game: gameConfig,
pgn: null,
fen: null,
fen: "",
moves: [],
ply: 0,
};
const [state, setState] = createStore(initialState);