ltbxd-actorle/assets/react/controllers/GameGrid.jsx

21 lines
570 B
React
Raw Normal View History

import React from 'react';
2026-03-28 12:19:44 +00:00
import GameRow from './GameRow';
export default function GameGrid({ grid, width, middle }) {
return (
<table id="actors">
<tbody>
{grid.map((row, rowIndex) => (
2026-03-28 12:19:44 +00:00
<GameRow
key={rowIndex}
actorName={row.actorName}
pos={row.pos}
colStart={middle - row.pos}
totalWidth={width}
/>
))}
</tbody>
</table>
);
}