import Cell from "./cell.tsx"; import styles from "./maze.module.css"; import {State} from "./state/state.ts"; import {ActionDispatch, JSX} from "react"; import {Action} from "./state/action.ts"; export default function Maze({state, dispatch}: { state: State, dispatch: ActionDispatch<[Action]> }) { if (!state.maze) { return