update react
This commit is contained in:
parent
804ce323bf
commit
7d4f1151fa
40 changed files with 3573 additions and 14078 deletions
18
src/app/state/state.ts
Normal file
18
src/app/state/state.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import Coordinates from "../model/coordinates.ts";
|
||||
import Maze from "../model/maze.ts";
|
||||
|
||||
export interface State {
|
||||
errorMessage: string | null,
|
||||
loading: boolean,
|
||||
maze: Maze | null,
|
||||
showSolution: boolean,
|
||||
userPath: Coordinates[]
|
||||
}
|
||||
|
||||
export const INITIAL_STATE: State = {
|
||||
errorMessage: null,
|
||||
loading: false,
|
||||
maze: null,
|
||||
showSolution: false,
|
||||
userPath: []
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue