import React from "react"; import { Cell } from "../types"; import styles from "../styles/board.module.css"; interface BoardProps { cells: Cell[]; cellWidth: number; } const Board = (props: BoardProps) => { return (
{props.cells.map((cell) => (
{cell.piece}
))}
); }; export default Board;