import Entity from '../entity/entity' import type { GameEntity } from '../../types' export default function Grid ({ grid }: { grid: GameEntity }) { const { width, height, spaces } = grid.attributes const w = Number(width ?? 0) const h = Number(height ?? 0) const spaceList = (spaces ?? []) as GameEntity[] return (
{spaceList.map((space, index) => (
))}
) }