Files
ltbxd-actorle/assets/react/controllers/GameGrid.jsx
2026-03-28 13:19:44 +01:00

21 lines
570 B
JavaScript

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